tesla-charge-controller/.gitea/workflows/build.yaml

30 lines
824 B
YAML
Raw Normal View History

2024-07-09 09:44:03 +10:00
name: Build .deb
on: workflow_call
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
Build-Deb:
runs-on: aarch64
steps:
- name: Run sccache-cache
uses: https://github.com/mozilla-actions/sccache-action@v0.0.5
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build
2024-12-26 22:31:58 +11:00
run: "cargo build --release --target=aarch64-unknown-linux-musl"
2024-07-09 09:44:03 +10:00
- name: Build .deb
2024-12-26 22:31:58 +11:00
run: "cargo deb --target=aarch64-unknown-linux-musl"
2024-07-09 09:44:03 +10:00
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release
path: |
2024-12-26 22:31:58 +11:00
./target/aarch64-unknown-linux-musl/debian/*.deb
./target/aarch64-unknown-linux-musl/release/tesla-charge-controller