Skip to content

Run static checks in CI and compile only on master #1

Run static checks in CI and compile only on master

Run static checks in CI and compile only on master #1

Workflow file for this run

name: Compile for the RPi
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
cross-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build
run: |
cross build --examples --bins --release --target aarch64-unknown-linux-gnu
mv target/aarch64-unknown-linux-gnu/release/STS1_EDU_Scheduler .
mv target/aarch64-unknown-linux-gnu/release/examples/cli .
cp scheduler/config.toml .
cp scheduler/scheduler.service .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: aarch64 package
path: |
STS1_EDU_Scheduler
config.toml
scheduler.service
cli