Add release workflow with musl static build

This commit is contained in:
Zeger Van de Vannet 2021-12-19 11:23:33 +01:00 committed by Ferran Basora
parent 2ea254d48e
commit b789d00523

36
.github/workflows/release.yml vendored Normal file
View File

@ -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"