Skip to content

v0.6.1

v0.6.1 #16

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Stefan Hackenberg <mail@stefan-hackenberg.de>
#
# SPDX-License-Identifier: MIT
on:
release:
types: [created]
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy -- --deny warnings
- name: Build
run: cargo build --release
- name: Package artifact
shell: bash
run: |
target=$(rustc -vV | sed -n 's|host: ||p')
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
cp target/release/rainbow-rs.exe .
7z a rainbow-rs-${target}.zip rainbow-rs.exe
else
cp target/release/rainbow-rs .
tar -czf rainbow-rs-${target}.tar.gz rainbow-rs
fi
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
LICENSES/MIT.txt
*.tar.gz
*.zip