feat: Support github_artifact:// protocol #40
Workflow file for this run
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
name: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
upload_artifact: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: native-linux-arm64-glibc-3.12.node | |
path: example/index.node | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: native-linux-x64-glibc-3.12.node | |
path: example/index.node | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: native-linux-arm64-glibc-fallback.node | |
path: example/index.node | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: native-linux-x64-glibc-fallback.node | |
path: example/index.node | |
npm: | |
runs-on: ubuntu-latest | |
needs: ["upload_artifact"] | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Set Yarn version | |
run: yarn policies set-version v1.22.19 | |
- name: Yarn install | |
uses: nick-invision/retry@v2 | |
with: | |
max_attempts: 3 | |
retry_on: error | |
retry_wait_seconds: 15 | |
timeout_minutes: 5 | |
command: yarn install --frozen-lockfile | |
- name: Compile | |
run: npm run build | |
- name: Run example | |
run: cd example && node ../dist/bin.js | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Run example | |
run: cd example && node ../dist/bin.js |