Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrl committed Sep 14, 2024
1 parent c76bf5d commit f9cf019
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,26 @@ jobs:
key: '${{ runner.os }}-cargo-${{ hashFiles(''**/Cargo.lock'') }}'
-
name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu
rustup target add ${{ matrix.arch }}
rustup target add ${{ matrix.target }}
which cargo-zigbuild || cargo install cargo-zigbuild
sudo snap install zig --classic --beta
-
name: Build release
run: cargo zigbuild --target ${{ matrix.arch }} --release
run: cargo zigbuild --target ${{ matrix.target }} --release
-
name: Rename release
run: |
mv ./target/release/turn-server ./target/release/turn-server-${{ matrix.arch }}
mv ./target/release/turn-server ./target/release/turn-server-${{ matrix.target }}
-
name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.arch }}
name: ${{ matrix.target }}
path: |
./target/release/turn-server-${{ matrix.arch }}
./target/release/turn-server-${{ matrix.target }}
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit f9cf019

Please sign in to comment.