From b789d005238a00e6eb0d0a03af0570c08c65d557 Mon Sep 17 00:00:00 2001 From: Zeger Van de Vannet <747627+zegervdv@users.noreply.github.com> Date: Sun, 19 Dec 2021 11:23:33 +0100 Subject: [PATCH] Add release workflow with musl static build --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..577b175 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: release + +on: + push: + tags: + - '*' + + workflow_dispatch: + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: build + uses: sassman/rust-deb-builder@v1.57.0 + with: + target: x86_64-unknown-linux-musl + - name: package + run: | + cd "$GITHUB_WORKSPACE" + mkdir -p package + mkdir -p package/target/release + cp -v tmux-thumbs.sh tmux-thumbs.tmux package/ + cp -v target/x86_64-unknown-linux-musl/release/thumbs package/target/release + cp -v target/x86_64-unknown-linux-musl/release/tmux-thumbs package/target/release + tar czvf tmux-thumbs.x86_64-musl.tar.gz package/* + - name: create_release + uses: ncipollo/release-action@v1.9.0 + with: + artifactErrorsFailBuild: true + artifacts: "tmux-thumbs.x86_64-musl.tar.gz"