mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-24 05:45:00 +00:00
Add release workflow with musl static build
This commit is contained in:
parent
2ea254d48e
commit
b789d00523
36
.github/workflows/release.yml
vendored
Normal file
36
.github/workflows/release.yml
vendored
Normal 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"
|
Loading…
Reference in New Issue
Block a user