Skip to content

go back to musl, like example, hoping for static build #3

go back to musl, like example, hoping for static build

go back to musl, like example, hoping for static build #3

Workflow file for this run

# adapted from
# https://github.com/softprops/rust-bin-test/blob/master/.github/workflows/main.yml
name: release
permissions:
contents: write
on:
push:
tags:
- "v*.*.*"
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
toolchain: [nightly]
include:
- os: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-musl
bin: pbqff
name: pbqff-linux-x86_64.tar.gz
- os: macos-latest
rust: nightly
target: aarch64-apple-darwin
bin: pbqff
name: pbqff-darwin-aarch64.tar.gz
- os: macos-13
rust: nightly
target: x86_64-apple-darwin
bin: pbqff
name: pbqff-darwin-x86_64.tar.gz
runs-on: ${{ matrix.os }}
steps:
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Configure Rustup
run: rustup target add ${{ matrix.target }}
- name: Checkout
uses: actions/checkout@v1
- name: Build
run: cargo build --release --features vers --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
strip target/${{ matrix.target }}/release/${{ matrix.bin }}
cd target/${{ matrix.target }}/release
tar czvf ../../../${{ matrix.name }} ${{ matrix.bin }}
cd -
- name: Publish
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: 'pbqff*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}