Skip to content

fix release workflow #5

fix release workflow

fix release workflow #5

Workflow file for this run

name: release
on:
release:
types: [published]
workflow_dispatch: # temp
push:
branches:
- misc/ci-auto-release # temp
permissions:
contents: write
jobs:
binary:
strategy:
matrix:
include:
- build: x86_64-musl
host: ubuntu-latest
target: x86_64-unknown-linux-musl
rust: stable
runs-on: ${{ matrix.host }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2 # TEST
with:
key: "${{matrix.build}}"
#- name: install packages (ubuntu)
# if: startsWith(matrix.host, 'ubuntu')
# run: scripts/install-ubuntu-packages
- uses: taiki-e/upload-rust-binary-action@v1
id: build
with:
bin: qcp
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.target }}
include: README.md,LICENSE,CHANGELOG.md
leading-dir: true
tar: unix
zip: windows
dry_run: true # TEMP, for testing
- uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.target }}
path: ${{ steps.build.outputs.archive }}.tar.gz