Skip to content

Commit

Permalink
ci: upgrade to Node 22
Browse files Browse the repository at this point in the history
That's the same version we use in Grist Core now.
  • Loading branch information
jordigh committed Jan 9, 2025
1 parent b54a7af commit 3e005cd
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ jobs:
target:
- x64
node:
- 14
- 16
- 18
- 22
include:
- os: windows-latest
node: 16
node: 22
host: x86
target: x86
# This is a self-hosted runner, github doesn't have this architecture yet.
- os: macos-m1
node: 16
node: 22
host: arm64
target: arm64
name: ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
Expand Down Expand Up @@ -103,15 +101,14 @@ jobs:

- name: Upload binaries to commit artifacts
uses: actions/upload-artifact@v4
if: matrix.node == 16
with:
name: "prebuilt-binaries-${{ matrix.os }}-${{ matrix.target }}"
path: build/stage/*/*
retention-days: 7

- name: Upload binaries to GitHub Release
run: yarn node-pre-gyp-github publish
if: matrix.node == 16 && startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ github.token }}
build-qemu:
Expand All @@ -121,7 +118,7 @@ jobs:
fail-fast: false
matrix:
node:
- 16
- 22
target:
- linux/arm64
variant:
Expand All @@ -131,7 +128,7 @@ jobs:
# musl x64 builds
- target: linux/amd64
variant: alpine3.15
node: 16
node: 22
name: ${{ matrix.variant }} (node=${{ matrix.node }}, target=${{ matrix.target }})
steps:
- uses: actions/checkout@v3
Expand All @@ -158,14 +155,13 @@ jobs:
- name: Upload binaries to commit artifacts
uses: actions/upload-artifact@v4
if: matrix.node == 16
with:
name: "prebuilt-binaries-${{ matrix.os }}-${{ matrix.target }}"
path: build/stage/*/*
retention-days: 7

- name: Upload binaries to GitHub Release
run: yarn install --ignore-scripts && yarn node-pre-gyp-github publish
if: matrix.node == 16 && startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 3e005cd

Please sign in to comment.