Skip to content

Commit

Permalink
feat: Add Rust installation and configuration for MSYS2 in build work…
Browse files Browse the repository at this point in the history
…flow
  • Loading branch information
silviot committed Dec 8, 2024
1 parent 1a08380 commit 1978796
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,20 @@ jobs:
pacman -S --noconfirm mingw-w64-ucrt-x86_64-gtk4
echo "PKG_CONFIG_PATH=/ucrt64/lib/pkgconfig" >> $GITHUB_ENV
echo "PKG_CONFIG_LIBDIR=/ucrt64/lib/pkgconfig" >> $GITHUB_ENV
- name: Install Rust in MSYS2
shell: msys2 {0}
run: |
pacman -S --noconfirm mingw-w64-ucrt-x86_64-rust
# Verify rust installation
rustc --version
cargo --version
- name: Build
shell: msys2 {0}
run: cargo build --release
run: |
# Ensure we're using MSYS2's cargo
export PATH="/ucrt64/bin:$PATH"
cargo build --release
- name: Package
run: |
mkdir aardvark-${{ matrix.arch }}
Expand Down

0 comments on commit 1978796

Please sign in to comment.