forked from rapiz1/rathole
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|