Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

Commit e4c9af2

Browse files
committed
Add onpush int-* github action
For coin integration branches, it is necessary to trigger this push to help testers down the road (Live-common CLI tests). Any push/merge on int-COIN will push a new @ledgerhq/ledger-core@COIN so that live-common-only users hopefully don't need a full GCC toolchain to test the current version in CLI. It does not not run the yarn version on the Action. yarn version is actually a hidden git commit so it will trigger an infinite loop (actually it fails because there are no credentials)
1 parent 7ade85e commit e4c9af2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: coin-integration-alpha
2+
on:
3+
push:
4+
branches:
5+
- 'int-*'
6+
jobs:
7+
prebuild-for-platform:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-16.04, macos-latest, windows-2016]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: actions/setup-node@master
15+
with:
16+
node-version: 12.x
17+
registry-url: https://registry.npmjs.org
18+
always-auth: true
19+
- uses: actions/setup-python@v1
20+
with:
21+
python-version: '2.7.x'
22+
- name: install
23+
run: yarn --frozen-lockfile --ignore-scripts
24+
- name: fetch libcore
25+
run: yarn preinstall
26+
- name: config gcc
27+
if: runner.os == 'Linux'
28+
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
29+
- name: prebuild for electron 8.1
30+
run: npx node-pre-gyp configure build package --runtime=electron --target=8.1.0 --build-from-source --dist-url=https://electronjs.org/headers
31+
- name: prebuild for electron 8.2
32+
run: npx node-pre-gyp configure build package --runtime=electron --target=8.2.0 --build-from-source --dist-url=https://electronjs.org/headers
33+
- name: prebuild for node 12
34+
run: npx node-pre-gyp configure build package --target=12.16.0
35+
- name: Get version and publish @coin on NPM
36+
if: matrix.os == 'ubuntu-16.04'
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_GAGBO_PUBLISH_TOKEN }}
39+
run: |
40+
export COIN=$(echo ${GITHUB_REF#refs/heads/int-})
41+
echo "I hope you remembered to run 'yarn version --prerelease --preid \"$COIN\"'"
42+
yarn publish --tag "$COIN"

0 commit comments

Comments
 (0)