Commit 82ef86f

Karn Wong <[email protected]>
2025-11-30 14:32:11
ci: add linux-arm target tag: v0.11.0
1 parent f834639
Changed files (2)
.github/workflows/release.yaml
@@ -14,8 +14,12 @@ jobs:
       # fail-fast: false # debug
       matrix:
         os: [linux, darwin, windows]
-        arch: [amd64, arm64]
+        arch: [amd64, arm64, arm32]
         exclude:
+          - os: darwin
+            arch: arm32
+          - os: windows
+            arch: arm32
           - os: windows
             arch: arm64
     runs-on: ${{ (matrix.os != 'darwin' && 'ubuntu-latest') || 'macos-latest' }}
@@ -28,7 +32,7 @@ jobs:
       - name: Install cross-compilers
         run: |
           if [ "${{ matrix.os }}" == "linux" ]; then
-            sudo apt-get install gcc-aarch64-linux-gnu
+            sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
           elif [ "${{ matrix.os }}" == "windows" ]; then
             sudo apt-get install gcc-mingw-w64-x86-64
           fi
@@ -42,7 +46,10 @@ jobs:
           cache-key: ${{ runner.os }}
       - name: Add Rust targets
         run: |
-          if [ "${{ matrix.os }}" == "darwin" ]; then
+          if [ "${{ matrix.os }}" == "linux" ]; then
+            rustup target add armv7-unknown-linux-gnueabihf
+            rustup target add aarch64-unknown-linux-gnu
+          elif [ "${{ matrix.os }}" == "darwin" ]; then
             rustup target add x86_64-apple-darwin
             rustup target add aarch64-apple-darwin
           elif [ "${{ matrix.os }}" == "windows" ]; then
.goreleaser-linux-arm32.yaml
@@ -0,0 +1,20 @@
+version: 2
+env:
+  - TARGET=armv7-unknown-linux-gnueabihf
+before:
+  hooks:
+    - ./scripts/build-static-ci.sh
+builds:
+  - env:
+      - CGO_ENABLED=1
+      - CC=arm-linux-gnueabihf-gcc
+    goos:
+      - linux
+    goarch:
+      - arm
+    ldflags:
+      - -linkmode 'external' -extldflags '-static'
+      - -w -s
+      - -X github.com/kahnwong/swissknife/cmd.version={{.Version}}
+checksum:
+  disable: true