fix: workflow fails due to long file names
This commit is contained in:
parent
8b19db7c60
commit
72501dfc54
1 changed files with 18 additions and 12 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue