Skip to content

Merge pull request #150 from brotskydotcom/persistence #21

Merge pull request #150 from brotskydotcom/persistence

Merge pull request #150 from brotskydotcom/persistence #21

Workflow file for this run

name: Publish executables
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: windows-latest
executable_name: examples/cli.exe
posted_name: cli.windows.exe
- os: macos-latest
executable_name: examples/cli
posted_name: cli.macos
- os: ubuntu-latest
executable_name: examples/cli
posted_name: cli.linux
steps:
- name: Fetch head
uses: actions/checkout@v4
- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Build (release, locked)
run: cargo build --release --example cli
- name: Post cli executable
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.executable_name }}
asset_name: ${{ matrix.posted_name }}
tag: ${{ github.ref }}