-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ changes for creating executable binaries of
percy
CLI (#1343)
* initial commit * Fix install.js * Fix lint * Revert for oclif * Revert code * Add build exec script * upload artifacts * Mac env for creating executable * Update output filename * Update output filename * Add signing & notrizing steps * Install gon * Update env name * Update permissions * Run on release only * Mac & linux x64, arm64 executables * Update to include current src * Update notrize config template * Use node 14 * Code cleanup * Fix code for codesign * Remove signing * Add entitlement.plist * Run only on publish * Use yarn build to generate dist folder * Add cleanup * Use code based on env * Add steps to create .env file * Skip coverage for Win path * add tests for install.js * add tests for install.js * remove dotenv installation * Update env var name * Add executable.js as entrypoint * Fix win executable and tests * Resolve comments * Resolve comments * convert artifacts to tar to retain permissions * convert artifacts to tar to retain permissions * Update script for correct naming * debug unit test * remove console log * update logic based on platform * Fix lint * refactoring code * Update to use gsed * Fix empty elements in array * Run executable version before uploading * Run executable version before uploading * Run on publish * Verify executable in seprate step
- Loading branch information
Showing
13 changed files
with
513 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build Executables | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
lint: | ||
name: Build Executables | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- name: Install gon via HomeBrew for code signing and app notarization | ||
run: | | ||
brew tap mitchellh/gon | ||
brew install mitchellh/gon/gon | ||
- run: ./scripts/executable.sh | ||
env: | ||
APPLE_DEV_CERT: ${{secrets.APPLE_DEV_CERT}} | ||
APPLE_ID_USERNAME: ${{secrets.APPLE_ID_USERNAME}} | ||
APPLE_ID_KEY: ${{secrets.APPLE_ID_KEY}} | ||
- name: Create tar files | ||
run: | | ||
tar -cvf percy-linux.tar percy | ||
mv percy-osx percy | ||
tar -cvf percy-osx.tar percy | ||
tar -cvf percy-win.tar percy.exe | ||
- name: Verify executable | ||
run: ./percy --version | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: percy-osx | ||
path: percy-osx.tar | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: percy-linux | ||
path: percy-linux.tar | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: percy-win | ||
path: percy-win.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.