Skip to content
Open
Show file tree
Hide file tree
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
38 changes: 23 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install dependencies
run: yarn install
run: pnpm install --no-immutable
- name: Oxlint
run: yarn lint
run: pnpm lint
- name: Cargo fmt
run: cargo fmt -- --check
- name: Clippy
Expand All @@ -50,16 +54,16 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
build: yarn build --target x86_64-apple-darwin
build: pnpm build --target x86_64-apple-darwin
- host: windows-latest
build: yarn build --target x86_64-pc-windows-msvc
build: pnpm build --target x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
build: yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
build: pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
- host: macos-latest
target: aarch64-apple-darwin
build: yarn build --target aarch64-apple-darwin
build: pnpm build --target aarch64-apple-darwin
name: stable - ${{ matrix.settings.target }} - node@22
runs-on: ${{ matrix.settings.host }}
steps:
Expand All @@ -68,7 +72,11 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -101,7 +109,7 @@ jobs:
if: ${{ matrix.settings.setup }}
shell: bash
- name: Install dependencies
run: yarn install
run: pnpm install --no-immutable
- name: Build
run: ${{ matrix.settings.build }}
shell: bash
Expand Down Expand Up @@ -140,10 +148,10 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: yarn
cache: pnpm
architecture: ${{ matrix.settings.architecture }}
- name: Install dependencies
run: yarn install
run: pnpm install --no-immutable
- name: Download artifacts
uses: actions/download-artifact@v7
with:
Expand Down Expand Up @@ -173,7 +181,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: yarn
cache: pnpm
- name: Output docker params
id: docker
run: |
Expand All @@ -197,7 +205,7 @@ jobs:
run: |
yarn config set --json supportedArchitectures.cpu '["current", "arm64", "x64", "arm"]'
yarn config set --json supportedArchitectures.libc '["current", "musl", "gnu"]'
yarn install
pnpm install
- name: Download artifacts
uses: actions/download-artifact@v7
with:
Expand Down Expand Up @@ -235,9 +243,9 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
cache: pnpm
- name: Install dependencies
run: yarn install
run: pnpm install --no-immutable
- name: create npm dirs
run: yarn napi create-npm-dirs
- name: Download all artifacts
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
"main": "index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/napi-rs/package-template.git"
"url": "git+ssh://git@github.com/atom-universe/FeOPack.git"
},
"license": "MIT",
"browser": "browser.js",
"workspaces": [
"packages/*",
"crates/node-binding"
],
"keywords": [
"napi-rs",
"NAPI",
Expand Down Expand Up @@ -39,6 +43,7 @@
"access": "public"
},
"scripts": {
"build": "napi build --platform --release",
"build:crates": "just build-crates",
"build:update": "just build-update",
"artifacts": "napi artifacts",
Expand Down
Loading