Skip to content

Commit

Permalink
chore: update toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
高伟健 committed Jul 19, 2024
1 parent 4424ba0 commit ea7b96e
Show file tree
Hide file tree
Showing 30 changed files with 3,738 additions and 1,570 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
target: i686-pc-windows-msvc
build: |
export CARGO_PROFILE_RELEASE_LTO=false
cargo install cargo-xwin
cargo install --locked cargo-xwin
npm run build -- --target i686-pc-windows-msvc --abi win32-ia32-msvc --cargo-flags="--no-default-features"
- os: windows-latest
abi: win32-arm64-msvc
target: aarch64-pc-windows-msvc
build: |
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256
export CARGO_PROFILE_RELEASE_LTO=false
cargo install cargo-xwin
cargo install --locked cargo-xwin
npm run build -- --target aarch64-pc-windows-msvc --abi win32-arm64-msvc --cargo-flags="--no-default-features"
# linux
- os: ubuntu-latest
Expand All @@ -58,11 +58,6 @@ jobs:
abi: linux-arm64-gnu
target: aarch64-unknown-linux-gnu
zig: true
# macos
# - os: macos-latest
# abi: darwin-arm64
# target: aarch64-apple-darwin
# zig: true
# - os: ubuntu-latest
# abi: darwin-x64
# target: x86_64-apple-darwin
Expand All @@ -83,7 +78,7 @@ jobs:
with:
node-version: 18
- name: Install Dependencies
run: npm install -g pnpm@8.15.1 && pnpm i --frozen-lockfile
run: npm install -g pnpm@9.1.0 && pnpm i --frozen-lockfile
- run: rustup target add ${{ matrix.settings.target }}
if: ${{ matrix.settings.target }}
# Use the v1 of this action
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,8 @@ jobs:
test -f ./npm/${abi}/index.farm
done
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
run: npm install -g pnpm@8.15.1 && pnpm i --frozen-lockfile

- name: Create .npmrc file
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
run: npm install -g pnpm@9.1.0 && pnpm i --frozen-lockfile

- name: Publish to npm
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} && npm publish
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} && npm publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
target
*.node
*.farm
playground/dist
Loading

0 comments on commit ea7b96e

Please sign in to comment.