Update the checkout and upload-artifact actions to v4 for Node.js 20 … #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Cargo build | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
target: [x86_64-pc-windows-msvc, aarch64-pc-windows-msvc] | |
steps: | |
- name: Checkout 📥 | |
uses: actions/checkout@v4 | |
- name: Setup ARM toolchain 📦 | |
if: matrix.target == 'aarch64-pc-windows-msvc' | |
run: rustup target add aarch64-pc-windows-msvc | |
- name: Build 🛠 | |
run: cargo build --release --target ${{ matrix.target }} | |
- name: Upload binaries 📤 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows-${{ matrix.target == 'x86_64-pc-windows-msvc' && 'x64' || 'arm64' }}-binaries | |
retention-days: 90 | |
path: target/**/release/*.exe |