Skip to content

fix release ci (#42) #29

fix release ci (#42)

fix release ci (#42) #29

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build:
name: Release binary
env:
cargo: cargo
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact_name: ksnotify
asset_name: ksnotify-x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
artifact_name: ksnotify
asset_name: ksnotify-x86_64-unknown-linux-musl
- os: ubuntu-latest
target: x86_64-pc-windows-gnu
artifact_name: bqvalid.exe
asset_name: ksnotify-x86_64-pc-windows-gnu.exe
- os: macos-latest
target: x86_64-apple-darwin
artifact_name: ksnotify
asset_name: ksnotify-x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install toolchain
run: |
rustup toolchain install stable --profile minimal
rustup default stable
cargo install cross
rustup target add ${{ matrix.target }}
- name: Cross build with all features
run: cross build --release --target ${{ matrix.target }} --all-features --verbose
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true