This repository was archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Add onpush int-* github action #75
Draft
gagbo
wants to merge
2
commits into
LedgerHQ:master
Choose a base branch
from
gagbo:coin-int-specific-CI
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,43 @@ | ||
| name: coin-integration-alpha | ||
| on: | ||
| push: | ||
| branches: | ||
| - 'int-*' | ||
| jobs: | ||
| prebuild-for-platform: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-16.04, macos-latest, windows-2016] | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: actions/setup-node@master | ||
| with: | ||
| node-version: 12.x | ||
| registry-url: https://registry.npmjs.org | ||
| always-auth: true | ||
| - uses: actions/setup-python@v1 | ||
| with: | ||
| python-version: '2.7.x' | ||
| - name: install | ||
| run: yarn --frozen-lockfile --ignore-scripts | ||
| - name: fetch libcore | ||
| run: yarn preinstall | ||
| - name: config gcc | ||
| if: runner.os == 'Linux' | ||
| run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 | ||
| - name: prebuild for electron 9.0 | ||
| run: npx node-pre-gyp configure build package --runtime=electron --target=9.0.0 --build-from-source --dist-url=https://electronjs.org/headers | ||
| - name: prebuild for electron 8.2 | ||
| run: npx node-pre-gyp configure build package --runtime=electron --target=8.2.0 --build-from-source --dist-url=https://electronjs.org/headers | ||
| - name: prebuild for node 12 | ||
| run: npx node-pre-gyp configure build package --target=12.16.0 | ||
| - name: Get version and publish @coin on NPM | ||
| if: matrix.os == 'ubuntu-16.04' | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_GAGBO_PUBLISH_TOKEN }} | ||
| run: | | ||
| export COIN=$(echo ${GITHUB_REF#refs/heads/int-}) | ||
| echo "I hope you remembered to run 'yarn version --prerelease --preid \"$COIN\"'" | ||
| [ -z "$COIN" ] && echo "the COIN tag is not set. Aborting publish" && exit 1 | ||
| yarn publish --tag "$COIN" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a question, why not using
ubuntu-latestandwindows-latest?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to always use well-defined runners instead of
xxx-latestto avoid to break CI in future latest release platforms