fix: workflow fails due to long file names

This commit is contained in:
Chance 2025-04-10 16:29:33 -04:00 committed by BitSyndicate
parent a62fae960d
commit 4a94ac6518
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE

View file

@ -6,6 +6,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
@ -59,19 +60,24 @@ jobs:
- name: 📥 Clone repository
uses: actions/checkout@v4
- name: 🛠️ Install dependencies
- name: 🐧 Install Linux dependencies
if: contains(matrix.target, 'linux')
run: |
apt-get update
# Install platform-specific dependencies
if [[ "${{ matrix.target }}" == *"linux"* ]]; then
apt-get install -y ${{ matrix.deps }}
elif [[ "${{ matrix.target }}" == *"windows"* ]]; then
apt-get install -y ${{ matrix.deps }}
elif [[ "${{ matrix.target }}" == *"apple-darwin"* ]]; then
wget https://ziglang.org/builds/zig-linux-x86_64-0.11.0.tar.xz
tar xf zig-linux-x86_64-0.11.0.tar.xz
echo "$(pwd)/zig-linux-x86_64-0.11.0" >> $GITHUB_PATH
fi
apt-get install -y ${{ matrix.deps }}
- name: 🪟 Install Windows dependencies
if: contains(matrix.target, 'windows')
run: |
apt-get update
apt-get install -y ${{ matrix.deps }}
- name: 🍎 Install macOS dependencies (Zig)
if: contains(matrix.target, 'apple-darwin')
run: |
wget https://ziglang.org/builds/zig-linux-x86_64-0.11.0.tar.xz
tar xf zig-linux-x86_64-0.11.0.tar.xz
echo "$(pwd)/zig-linux-x86_64-0.11.0" >> $GITHUB_PATH
- name: 🔧 Install Rust
uses: https://github.com/actions-rs/toolchain@v1
@ -81,7 +87,7 @@ jobs:
target: ${{ matrix.target }}
profile: minimal
- name: 🔧 Install cargo-zigbuild (macOS)
- name: 🔧 Install cargo-zigbuild
if: contains(matrix.target, 'apple-darwin')
run: cargo install cargo-zigbuild