try run-on macos-14 #7
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: Build and upload release | |
on: | |
push: | |
tags: | |
- '**' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build- | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install SDL2 | |
run: sudo apt install -y libsdl2-dev | |
- name: Build | |
run: cargo build -r && strip target/release/kalast | |
- name: Make bundle | |
run: | | |
mkdir -p bin/ubuntu | |
cp -r examples bin/ubuntu | |
cp -r target/release/kalast bin/ubuntu | |
cd bin/ubuntu | |
cp -r examples/thermal/cfg . | |
tar cvzf kalast-${{ github.ref_name }}-tar.gz * | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: bin/ubuntu/kalast-${{ github.ref_name }}-tar.gz | |
prerelease: true |