Skip to content

Commit

Permalink
release gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Sep 28, 2023
1 parent 4dfad17 commit 26940e0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
release:
name: Cross build for x86_64-unknown-linux-musl
name: Cross build for x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -25,33 +25,33 @@ jobs:
- name: Install cross
run: cargo install --version 0.1.16 cross
- name: Run tests
run: cross test --release --target x86_64-unknown-linux-musl --verbose
run: cross test --release --target x86_64-unknown-linux-gnu --verbose
- name: Build release
run: cross build --release --target x86_64-unknown-linux-musl
run: cross build --release --target x86_64-unknown-linux-gnu
- name: Run UPX
# Upx may not support some platforms. Ignore the errors
continue-on-error: true
uses: crazy-max/ghaction-upx@v1
with:
version: v4.0.2
files: target/x86_64-unknown-linux-musl/release/rathole
files: target/x86_64-unknown-linux-gnu/release/rathole
args: -q --best --lzma
- uses: actions/upload-artifact@v2
with:
name: rathole-x86_64-unknown-linux-musl
path: target/x86_64-unknown-linux-musl/release/rathole
name: rathole-x86_64-unknown-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/rathole
- name: Zip Release
uses: TheDoctor0/[email protected]
with:
type: zip
filename: rathole-x86_64-unknown-linux-musl.zip
directory: target/x86_64-unknown-linux-musl/release/
filename: rathole-x86_64-unknown-linux-gnu.zip
directory: target/x86_64-unknown-linux-gnu/release/
path: rathole
- name: Publish
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/x86_64-unknown-linux-musl/release/rathole-x86_64-unknown-linux-muslss.zip
files: target/x86_64-unknown-linux-gnu/release/rathole-x86_64-unknown-linux-gnuss.zip
generate_release_notes: true
draft: true
docker:
Expand Down

0 comments on commit 26940e0

Please sign in to comment.