This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
.github/workflows/release.yml #27
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
on: | |
create | |
jobs: | |
build-archimedes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Cargo Check | |
run: cargo check | |
- name: Build | |
uses: houseabsolute/[email protected] | |
with: | |
command: build | |
target: armv7-unknown-linux-gnueabihf | |
args: "-p archimedes --locked --release" | |
toolchain: stable | |
- name: Run UPX | |
continue-on-error: true | |
uses: crazy-max/ghaction-upx@v3 | |
with: | |
version: latest | |
files: target/armv7-unknown-linux-gnueabihf/release/archimedes | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: target/armv7-unknown-linux-gnueabihf/release/archimedes |