1 Commits

Author SHA1 Message Date
d59480631d that did not work first try
All checks were successful
Rust / build (, linux, x86_64-unknown-linux-gnu) (push) Successful in 59s
Rust / build (.exe, windows, x86_64-pc-windows-gnu) (push) Successful in 1m10s
2025-06-03 01:32:34 -04:00

View File

@ -29,8 +29,22 @@ jobs:
targets: ${{ matrix.target }}
- name: Install cross compilation tools
if: matrix.target == 'x86_64-pc-windows-gnu'
run: sudo apt-get update && sudo apt-get install mingw-w64 -y
run: |
sudo apt-get update
if [ "${{ matrix.target }}" = "x86_64-pc-windows-gnu" ]; then
sudo apt-get install mingw-w64 -y
elif [ "${{ matrix.target }}" = "x86_64-unknown-linux-gnu" ]; then
sudo apt-get install gcc-x86-64-linux-gnu -y
fi
- name: Configure cross compilation
run: |
if [ "${{ matrix.target }}" = "x86_64-unknown-linux-gnu" ]; then
echo "CC_x86_64_unknown_linux_gnu=x86_64-linux-gnu-gcc" >> $GITHUB_ENV
echo "CXX_x86_64_unknown_linux_gnu=x86_64-linux-gnu-g++" >> $GITHUB_ENV
echo "AR_x86_64_unknown_linux_gnu=x86_64-linux-gnu-ar" >> $GITHUB_ENV
echo "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc" >> $GITHUB_ENV
fi
- name: Setup Cache
uses: Swatinem/rust-cache@v2