Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Jun 6, 2024
1 parent bc54838 commit f4c0187
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build-node-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ jobs:

build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-msvc, aarch64-pc-windows-msvc]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -138,19 +142,24 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
./target/x86_64-pc-windows-msvc
key: x86_64-pc-windows-msvc-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
./target/${{ matrix.target }}
key: ${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Install Visual Studio 2022 build tools
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install visualstudio2022buildtools
- name: Setup aarch64 toolchain
if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
run: |
echo "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH
shell: bash
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: x86_64-pc-windows-msvc
target: ${{ matrix.target }}
- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -168,8 +177,8 @@ jobs:
- name: Build target
run: |
cd bindings_node
yarn build --target x86_64-pc-windows-msvc
yarn build --target ${{ matrix.target }}
- name: List files
run: |
cd bindings_node
ls -la
dir

0 comments on commit f4c0187

Please sign in to comment.