disabled clippy, it's too much #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
desktop: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-latest, windows-latest] | |
include: | |
- os: ubuntu-22.04 | |
artifact_name: ./target/release/obs-cmd | |
asset_name: obs-cmd-linux-amd64 | |
- os: windows-latest | |
artifact_name: ./target/release/obs-cmd.exe | |
asset_name: obs-cmd-windows-amd64.exe | |
- os: macos-latest | |
artifact_name: ./target/release/obs-cmd | |
asset_name: obs-cmd-macos-amd64 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --release | |
- name: Upload binaries | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ matrix.artifact_name }} | |
asset_name: ${{ matrix.asset_name }} | |
tag: ${{ github.ref }} | |
embedded: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install cross | |
run: cargo install cross | |
- name: Build for armv7-gnueabihf | |
run: cross build --target armv7-unknown-linux-gnueabihf --release | |
- name: Upload binaries to release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/armv7-unknown-linux-gnueabihf/release/obs-cmd | |
asset_name: obs-cmd-armv7 | |
tag: ${{ github.ref }} |