Skip to content

add delimiter (#40) #27

add delimiter (#40)

add delimiter (#40) #27

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: 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
- 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