2024-01-14 17:02:13 +01:00
|
|
|
on: push
|
|
|
|
jobs:
|
2024-01-14 17:06:37 +01:00
|
|
|
build-firmware:
|
2024-01-14 17:02:13 +01:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: forgejo.zenerdio.de/sebastian/cheapsdo-ci:v0.1.0
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
2024-01-14 18:28:17 +01:00
|
|
|
key: build-cheapsdo-firmware
|
2024-01-14 17:02:13 +01:00
|
|
|
restore-keys: audit-cheapsdo
|
2024-01-14 17:06:37 +01:00
|
|
|
- run: cd firmware && CARGO_HOME=~/.cargo cargo build --target thumbv7m-none-eabi --release
|
|
|
|
|
|
|
|
build-linux:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: forgejo.zenerdio.de/sebastian/cheapsdo-ci:v0.1.0
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
2024-01-14 18:28:17 +01:00
|
|
|
key: build-cheapsdo-linux
|
|
|
|
restore-keys: build-cheapsdo-firmware
|
2024-01-14 17:02:13 +01:00
|
|
|
- run: cd hostsoftware && CARGO_HOME=~/.cargo cargo build --release
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-01-14 17:39:45 +01:00
|
|
|
image: forgejo.zenerdio.de/sebastian/cheapsdo-ci:v0.1.0
|
2024-01-14 17:02:13 +01:00
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
2024-01-14 18:28:17 +01:00
|
|
|
key: build-cheapsdo-windows
|
|
|
|
restore-keys: build-cheapsdo-linux
|
2024-01-14 17:02:13 +01:00
|
|
|
- run: cd hostsoftware && CARGO_HOME=~/.cargo cargo build --target x86_64-pc-windows-gnu --release
|
|
|
|
|
|
|
|
build-appimage:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-01-14 17:39:45 +01:00
|
|
|
image: forgejo.zenerdio.de/sebastian/cheapsdo-ci:v0.1.0
|
2024-01-14 17:02:13 +01:00
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/cache/restore@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
2024-01-14 18:28:17 +01:00
|
|
|
key: build-cheapsdo-appimage
|
|
|
|
restore-keys: build-cheapsdo-linux
|
2024-01-14 17:02:13 +01:00
|
|
|
- run: cd hostsoftware && CARGO_HOME=~/.cargo PATH=$PATH:$CARGO_HOME/bin x build -r --format appimage
|