tesla-charge-controller/.gitea/workflows/build.yaml
Alex Janka 1db851f286
Some checks failed
Build and release .deb / Build (push) Failing after 3s
Build and release .deb / Release (push) Failing after 2s
actions: update toolchain
2024-12-26 22:45:13 +11:00

29 lines
812 B
YAML

name: Build .deb
on: workflow_call
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
Build-Deb:
runs-on: aarch64
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Update toolchain
run: "rustup target add aarch64-unknown-linux-musl"
- name: Build
run: "cargo build --release --target=aarch64-unknown-linux-musl"
- name: Build .deb
run: "cargo deb --target=aarch64-unknown-linux-musl"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release
path: |
./target/aarch64-unknown-linux-musl/debian/*.deb
./target/aarch64-unknown-linux-musl/release/tesla-charge-controller