Skip to content

rename example

rename example #5

Workflow file for this run

name: Release Example Binary
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
upload-release:
strategy:
matrix:
info:
- os: "macOS-latest"
target: "x86_64-apple-darwin"
- os: "macOS-latest"
target: "aarch64-apple-darwin"
- os: "windows-latest"
target: "x86_64-pc-windows-msvc"
- os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
runs-on: ${{ matrix.info.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.info.target }}
components: clippy, rustfmt
- name: Build Example
run: cd examples && cargo build --release --target ${{ matrix.info.target }}
- name: Package Example
shell: bash
env:
NAME: unifiedlog_iterator
TARGET: ${{ matrix.info.target }}
run: .github/scripts/package.sh
- name: Release
uses: softprops/action-gh-release@v2
with:
files: "unifiedlog_iterator*"
name: "${{ vars.GITHUB_REF_NAME }} - Released!"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}