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