Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
env:
DEBUG: napi:*
APP_NAME: blst
MACOSX_DEPLOYMENT_TARGET: '10.13'
MACOSX_DEPLOYMENT_TARGET: "10.13"
permissions:
contents: write
id-token: write
Expand All @@ -11,7 +11,7 @@ on:
pull_request:
push:
branches:
- master
- main

jobs:
build:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
with:
node-version: '22.4.x'
node-version: "22.4.x"
cache: yarn
- name: Install
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -97,15 +97,15 @@ jobs:
uses: actions/setup-node@v4
if: matrix.settings.target == 'i686-pc-windows-msvc'
with:
node-version: '22.4.x'
node-version: "22.4.x"
cache: yarn
architecture: x86
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
Expand All @@ -131,8 +131,8 @@ jobs:
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
- '18'
- '22.4.x'
- "18"
- "22.4.x"
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -167,8 +167,8 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- '22.4.x'
- "18"
- "22.4.x"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- "18"
- 22.4
runs-on: ubuntu-latest
steps:
Expand All @@ -234,7 +234,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: node:${{ matrix.node }}-alpine
options: '--platform linux/amd64 -v ${{ github.workspace }}:/build -w /build'
options: "--platform linux/amd64 -v ${{ github.workspace }}:/build -w /build"
run: |
set -e
yarn test:unit
Expand All @@ -250,7 +250,7 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- "18"
- 22.4
runs-on: ubuntu-latest
steps:
Expand All @@ -277,7 +277,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: node:${{ matrix.node }}-slim
options: '--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
run: |
set -e
yarn test:unit
Expand All @@ -293,7 +293,7 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- "18"
- 22.4
runs-on: ubuntu-latest
steps:
Expand All @@ -320,7 +320,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: node:${{ matrix.node }}-alpine
options: '--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
run: |
set -e
yarn test:unit
Expand All @@ -329,7 +329,7 @@ jobs:
ls -la

publish:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
name: Publish
runs-on: ubuntu-latest
needs:
Expand All @@ -343,7 +343,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22.4.x'
node-version: "22.4.x"
cache: yarn
- name: Create tag
id: tag
Expand Down
Loading