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 d92c024f28
commit 850381bf90
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE

View file

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