Skip to content

Commit 2972f92

Browse files
committed
Restore armhf build
1 parent 1e2f82d commit 2972f92

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,34 @@ jobs:
4848
with:
4949
snap: ${{ steps.snapcraft.outputs.snap }}
5050
release: ${{ env.ABI_VERSION }}/edge
51+
52+
build-armhf:
53+
name: build armhf with snapcraft
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Check out Git repository
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
59+
- name: Store Ruby version
60+
run: |
61+
echo "RUBY_VERSION=${{ github.event.client_payload.ruby_version || github.event.inputs.ruby_version }}" >> $GITHUB_ENV
62+
63+
- name: Generate template file
64+
run: ruby generate.rb ${{ env.RUBY_VERSION }}
65+
66+
- uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
67+
68+
- uses: diddlesnaps/snapcraft-multiarch-action@cfd7a246fad6bea65bb92f69a1c8d07898c231e5 # v1.9.0
69+
id: snapcraft
70+
with:
71+
architecture: armhf
72+
73+
- name: Store ABI version
74+
run: echo "ABI_VERSION=$(echo ${{ env.RUBY_VERSION }} | cut -d '.' -f 1-2)" >> $GITHUB_ENV
75+
76+
- uses: snapcore/action-publish@214b86e5ca036ead1668c79afb81e550e6c54d40 # v1.2.0
77+
env:
78+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
79+
with:
80+
snap: ${{ steps.snapcraft.outputs.snap }}
81+
release: ${{ env.ABI_VERSION }}/edge

0 commit comments

Comments
 (0)