Skip to content

Commit

Permalink
Build static Linux binary via Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceadams committed Apr 3, 2020
1 parent 5366fab commit 3999125
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v1
- name: Get Release
id: get_release
uses: bruceadams/get-release@v1.1.0
uses: bruceadams/get-release@v1.2.0
- name: Build
run: cargo build --release --verbose
- name: Upload Release Asset
Expand All @@ -35,9 +35,12 @@ jobs:
uses: actions/checkout@v1
- name: Get Release
id: get_release
uses: bruceadams/get-release@v1.1.0
uses: bruceadams/get-release@v1.2.0
- name: Build
run: cargo build --release --verbose
run: |
sudo apt-get install musl-tools
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl --verbose
- name: Upload Release Asset
uses: actions/[email protected]
with:
Expand All @@ -54,7 +57,7 @@ jobs:
uses: actions/checkout@v1
- name: Get Release
id: get_release
uses: bruceadams/get-release@v1.1.0
uses: bruceadams/get-release@v1.2.0
- name: Build
run: cargo build --release --verbose
- name: Upload Release Asset
Expand Down

0 comments on commit 3999125

Please sign in to comment.