Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed May 9, 2024
1 parent a50fd00 commit a047e6f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
if: ${{ !matrix.settings.docker }}
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
if: ${{ !matrix.settings.docker }}
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node
path: ${{ env.APP_NAME }}.*.node
Expand All @@ -155,7 +155,7 @@ jobs:
- '18'
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -165,7 +165,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node
path: .
Expand All @@ -186,7 +186,7 @@ jobs:
- '18'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -196,7 +196,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-gnu
path: .
Expand All @@ -217,7 +217,7 @@ jobs:
- '18'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -229,7 +229,7 @@ jobs:
yarn config set supportedArchitectures.libc "musl"
yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-musl
path: .
Expand All @@ -250,9 +250,9 @@ jobs:
- '18'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-aarch64-unknown-linux-gnu
path: .
Expand Down Expand Up @@ -284,9 +284,9 @@ jobs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-aarch64-unknown-linux-musl
path: .
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
- build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -327,25 +327,25 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download macOS x64 artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}.darwin-x64.node
path: artifacts
- name: List packages
run: ls artifacts/
shell: bash
- name: Download macOS arm64 artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.APP_NAME }}.darwin-arm64.node
path: artifacts
- name: List packages
run: ls artifacts/
shell: bash
# - name: Download macOS arm64 artifact
# uses: actions/download-artifact@v4
# with:
# name: ${{ env.APP_NAME }}.darwin-arm64.node
# path: artifacts
# - name: List packages
# run: ls artifacts/
# shell: bash
- name: Combine binaries
run: yarn universal
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}.darwin-universal.node
path: ${{ env.APP_NAME }}.*.node
Expand All @@ -361,7 +361,7 @@ jobs:
- test-linux-aarch64-gnu-binding
- universal-macOS
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -371,7 +371,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Move artifacts
Expand Down

0 comments on commit a047e6f

Please sign in to comment.