Skip to content

Commit 3d24882

Browse files
authored
add armhf arch to build targets
1 parent f9ea463 commit 3d24882

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- target: aarch64-unknown-linux-gnu
2727
os: ubuntu-22.04
2828
name: mhrv-rs-linux-arm64
29+
- target: arm-unknown-linux-gnueabihf
30+
os: ubuntu-latest
31+
name: mhrv-rs-raspbian-armhf
2932
- target: x86_64-apple-darwin
3033
os: macos-latest
3134
name: mhrv-rs-macos-amd64
@@ -73,6 +76,13 @@ jobs:
7376
echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config.toml
7477
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
7578
79+
- name: Install armhf cross-compile toolchain (Linux only)
80+
if: matrix.target == 'arm-unknown-linux-gnueabihf'
81+
run: |
82+
sudo apt-get update
83+
sudo apt-get install -y gcc-arm-linux-gnueabihf
84+
echo '[target.arm-unknown-linux-gnueabihf]' >> ~/.cargo/config.toml
85+
echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config.toml
7686
7787
- name: Install Windows MinGW toolchain
7888
if: matrix.target == 'x86_64-pc-windows-gnu'
@@ -120,7 +130,7 @@ jobs:
120130
# we still ship the CLI. We also skip the UI on musl targets (OpenWRT etc.
121131
# are headless, bundling X11 makes no sense).
122132
- name: Build UI
123-
if: matrix.target != 'aarch64-unknown-linux-gnu' && !endsWith(matrix.target, '-linux-musl')
133+
if: matrix.target != 'aarch64-unknown-linux-gnu' && matrix.target != 'arm-unknown-linux-gnueabihf' && !endsWith(matrix.target, '-linux-musl')
124134
run: cargo build --release --target ${{ matrix.target }} --features ui --bin mhrv-rs-ui
125135

126136
- name: Package (unix)

0 commit comments

Comments
 (0)