Skip to content

Commit

Permalink
build: added additonal release targets (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Nov 22, 2023
1 parent e460b1b commit 2cab62f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
RUST_BACKTRACE: 1
strategy:
matrix:
build: [linux-gnu, linux-musl, linux-arm, macos, macos-arm, netbsd, win-msvc, armv7-linux-gnueabihf, armv7-linux-musleabihf, armv7-linux-musleabi]
build: [linux-gnu, linux-musl, linux-arm, aarch64-unknown-linux-musl, macos, macos-arm, netbsd, win-msvc, x86_64-unknown-freebsd, armv7-linux-gnueabihf, armv7-linux-musleabihf, armv7-linux-musleabi, x86_64-pc-windows-gnu, aarch64-pc-windows-msvc]
include:
- build: linux-gnu
os: ubuntu-22.04
Expand All @@ -50,6 +50,9 @@ jobs:
- build: linux-arm
os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
- build: aarch64-unknown-linux-musl
os: ubuntu-22.04
target: aarch64-unknown-linux-musl
- build: macos
os: macos-latest
target: x86_64-apple-darwin
Expand All @@ -59,9 +62,18 @@ jobs:
- build: netbsd
os: ubuntu-22.04
target: x86_64-unknown-netbsd
- build: x86_64-unknown-freebsd
os: ubuntu-22.04
target: x86_64-unknown-freebsd
- build: win-msvc
os: windows-2022
target: x86_64-pc-windows-msvc
- build: x86_64-pc-windows-gnu
os: ubuntu-22.04
target: x86_64-pc-windows-gnu
- build: aarch64-pc-windows-msvc
os: windows-2022
target: aarch64-pc-windows-msvc
- build: armv7-linux-gnueabihf
os: ubuntu-22.04
target: armv7-unknown-linux-gnueabihf
Expand Down Expand Up @@ -108,7 +120,7 @@ jobs:
run: |
staging="trippy-${{ needs.create-release.outputs.trip_version }}-${{ matrix.target }}"
mkdir -p "$staging"
if [ "${{ matrix.os }}" = "windows-2022" ]; then
if [ "${{ matrix.os }}" = "windows-2022" ] || [ "${{ matrix.build }}" = "x86_64-pc-windows-gnu" ]; then
cp "target/${{ matrix.target }}/release/trip.exe" "$staging/"
7z a -tzip "$staging.zip" "$staging"
echo "ASSET=$staging.zip" >> $GITHUB_ENV
Expand Down

0 comments on commit 2cab62f

Please sign in to comment.