Skip to content

Commit

Permalink
Updated github action for native x86_x64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrinpyi committed Aug 18, 2024
1 parent c1c91c9 commit 54c7845
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
# Build gnu-linux on ubuntu-18.04 and musl on ubuntu latest
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-20.04, windows-latest, macos-latest ]
name: Building, ${{ matrix.os }}
steps:
- name: Fix CRLF on Windows
Expand Down Expand Up @@ -47,13 +47,12 @@ jobs:

- name: Build on Linux
if: runner.os == 'Linux'
# We're using musl to make the binaries statically linked and portable
run: |
cargo build --verbose --bin pyrin --release --target x86_64-unknown-linux-gnu
cargo build --bin pyrin --release
mkdir bin || true
cp target/x86_64-unknown-linux-gnu/release/pyrin bin/
archive="bin/pyrin-${{ github.event.release.tag_name }}-linux-gnu-amd64.zip"
asset_name="pyrin-${{ github.event.release.tag_name }}-linux-gnu-amd64.zip"
cp target/release/pyrin bin/
archive="bin/pyrin-${{ github.event.release.tag_name }}-linux-amd64.zip"
asset_name="pyrin-${{ github.event.release.tag_name }}-linux-amd64.zip"
zip -r "${archive}" ./bin/*
echo "archive=${archive}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
Expand Down

0 comments on commit 54c7845

Please sign in to comment.