Skip to content

Commit

Permalink
fix: Update Rust installation and build process for Windows MSYS2 env…
Browse files Browse the repository at this point in the history
…ironment
  • Loading branch information
silviot committed Dec 8, 2024
1 parent 1978796 commit eb7573f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,26 @@ jobs:
- name: Install Rust in MSYS2
shell: msys2 {0}
run: |
# Install Rust and cargo
pacman -S --noconfirm mingw-w64-ucrt-x86_64-rust
# Verify rust installation
# Update PATH to include MSYS2 rust location
export PATH="/ucrt64/bin:$PATH"
# Initialize Rust environment
source /ucrt64/bin/cargo-env
# Verify installation
which rustc
which cargo
rustc --version
cargo --version
- name: Build
shell: msys2 {0}
run: |
# Ensure we're using MSYS2's cargo
# Set up environment
export PATH="/ucrt64/bin:$PATH"
cargo build --release
source /ucrt64/bin/cargo-env
# Build with verbose output for debugging
cargo build --release -vv
- name: Package
run: |
mkdir aardvark-${{ matrix.arch }}
Expand Down

0 comments on commit eb7573f

Please sign in to comment.