Skip to content

Commit

Permalink
Try i586
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Dec 15, 2020
1 parent c3e2f00 commit 2235682
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jobs:
name: bindings-linux-aarch64
path: ${{ env.APP_NAME }}.*.node

build-win32-ia686:
build-win32-i686:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
override: true

- name: Install i686 toolchain
run: rustup target add i686-pc-windows-msvc
run: rustup target add i586-pc-windows-msvc

- name: Generate Cargo.lock
uses: actions-rs/cargo@v1
Expand All @@ -261,17 +261,21 @@ jobs:
key: stable-windows-i686-node@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}

- name: Cross build i686
run: yarn build --target i686-pc-windows-msvc
shell: bash
run: |
yarn build --target i586-pc-windows-msvc
mv package-template.win32-i586-msvc.node package-template.win32-ia32-msvc.node
- name: Test binary
run: |
node -v
node simple-test.js
yarn test
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: bindings-win32-i686
name: bindings-win32-i586
path: ${{ env.APP_NAME }}.*.node

build-apple-silicon:
Expand Down Expand Up @@ -466,7 +470,7 @@ jobs:
- test
- test-musl
- test-aarch64
- build-win32-ia686
- build-win32-i686
- build-apple-silicon
runs-on: ubuntu-latest
steps:
Expand All @@ -483,7 +487,7 @@ jobs:
- test
- test-musl
- test-aarch64
- build-win32-ia686
- build-win32-i686
- build-apple-silicon

steps:
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ version = "0.1.0"
crate-type = ["cdylib"]

[dependencies]
napi = {git = "https://github.com/napi-rs/napi-rs"}
napi-derive = {git = "https://github.com/napi-rs/napi-rs"}
napi = "1.0.0-alpha.1"
napi-derive = "1.0.0-alpha.0"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
Expand All @@ -20,7 +20,7 @@ jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
mimalloc = {version = "0.1"}

[build-dependencies]
napi-build = {git = "https://github.com/napi-rs/napi-rs"}
napi-build = "1.0.0-alpha.0"

[profile.release]
codegen-units = 1

0 comments on commit 2235682

Please sign in to comment.