update workflow with correct target definitio, add cli
Build and Release Firmware / build-and-release (push) Failing after 2m10s
Build and Release Firmware / build-and-release (push) Failing after 2m10s
This commit is contained in:
1 parent
e255636f3a
commit
f0991e8707
1 file changed
+16
-1
@@ -7,6 +7,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
TARGET: thumbv8m.main-none-eabihf
|
TARGET: thumbv8m.main-none-eabihf
|
||||||
|
CLI_TARGETS: aarch64-unknown-linux-musl,x86_64-pc-windows-gnu,x86_64-unknown-linux-musl
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
build-and-release:
|
||||||
@@ -22,8 +23,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Rust Toolchain
|
- name: Install Rust Toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: ${{ env.TARGET }},${{ env.CLI_TARGETS }}
|
||||||
|
components: "llvm-tools"
|
||||||
- name: Install cargo-binutils
|
- name: Install cargo-binutils
|
||||||
run: cargo install cargo-binutils
|
run: cargo install --locked cargo-binutils
|
||||||
|
- name: Install cargo-zigbuild
|
||||||
|
run: cargo install --locked cargo-zigbuild
|
||||||
- name: Build Firmware Binaries
|
- name: Build Firmware Binaries
|
||||||
run: |
|
run: |
|
||||||
cd firmware
|
cd firmware
|
||||||
@@ -57,7 +63,16 @@ jobs:
|
|||||||
ZIP_NAME="guac-firmware-${name}.zip"
|
ZIP_NAME="guac-firmware-${name}.zip"
|
||||||
zip -j "../dist/${ZIP_NAME}" "$RENAMED_ELF" "$HEX_PATH"
|
zip -j "../dist/${ZIP_NAME}" "$RENAMED_ELF" "$HEX_PATH"
|
||||||
done
|
done
|
||||||
|
- name: Build cli binaries
|
||||||
|
run: |
|
||||||
|
cd cli
|
||||||
|
|
||||||
|
IFS="," read -ra targets <<< "${{ env.CLI_TARGETS }}"
|
||||||
|
for target in "${targets[@]}"; do
|
||||||
|
cargo build --release --target $target
|
||||||
|
ZIP_NAME="guac-cli-${target}.zip"
|
||||||
|
zip -j "../dist/${ZIP_NAME}" "../target/$target/release/cli"
|
||||||
|
done
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user