Skip to content

Commit

Permalink
[#87] Use statically linked binaries for linux (#95)
Browse files Browse the repository at this point in the history
Resolves #87
  • Loading branch information
chshersh authored Sep 16, 2022
1 parent 65b53bd commit c768b8a
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,37 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: [create-release]
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
# This legacy target is only for backwards compatibility
# TODO: remove for the v0.3.0 release
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

# Needed because of this
# https://github.com/taiki-e/upload-rust-binary-action/issues/30
- name: Install coreutils for macOS
if: matrix.os == 'macOS-latest'
run: brew install coreutils

- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: tool
# (optional) Target triple, default is host triple.
target: ${{ matrix.target }}
# (optional) On which platform to distribute the `.tar.gz` file.
# [default value: unix]
# [possible values: all, unix, windows, none]
Expand All @@ -39,6 +58,8 @@ jobs:
# [default value: windows]
# [possible values: all, unix, windows, none]
zip: windows
# (optional) Comma-separated list of algorithms to be used for checksum (sha256, sha512, sha1, or md5)
checksum: sha256
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c768b8a

Please sign in to comment.