Skip to content

Commit 082ee52

Browse files
authored
Merge pull request #443 from hardillb/enable-node-18-arm7
Enable 32bit ARM builds
2 parents 160e117 + 4b83b23 commit 082ee52

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
strategy:
29+
max-parallel: 2
2930
matrix:
3031
node: [18, 20, 22]
3132
suffix: ["", "-minimal"]
@@ -54,9 +55,33 @@ jobs:
5455
-
5556
name: Setup QEMU
5657
uses: docker/setup-qemu-action@v3
58+
with:
59+
platforms: arm64
60+
-
61+
name: Set up SSH key pi5
62+
uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # v3.1.0
63+
with:
64+
host: ${{ secrets.SSH_REMOTE_HOST}}
65+
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
66+
private-key-name: remote
67+
port: 2022
68+
-
69+
name: Set up SSH key pi4
70+
uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # v3.1.0
71+
with:
72+
host: ${{ secrets.SSH_REMOTE_HOST}}
73+
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
74+
private-key-name: remote
75+
port: 2023
5776
-
5877
name: Setup Docker buildx
5978
uses: docker/setup-buildx-action@v3
79+
with:
80+
append: |
81+
- endpoint: ssh://nr@${{ secrets.SSH_REMOTE_HOST }}:2023
82+
platforms: linux/arm/v6,linux/arm/v7
83+
- endpoint: ssh://nr@${{ secrets.SSH_REMOTE_HOST }}:2022
84+
platforms: linux/arm64
6085
- name: Get Date
6186
id: date
6287
# run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%SZ')"
@@ -119,6 +144,19 @@ jobs:
119144
fi
120145
fi
121146
147+
# if [[ "${{ matrix.node }}" == "18"]]; then
148+
# echo "platforms=linux/amd64,linux/arm/v7,linux/arm64" >> $GITHUB_OUTPUT
149+
# else
150+
# echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
151+
# fi
152+
153+
# if [[ "${{ matrix.suffix }}" == "-minimal" ]]; then
154+
# echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
155+
# else
156+
# echo "platforms=linux/amd64,linux/arm/v7,linux/arm64" >> $GITHUB_OUTPUT
157+
# fi
158+
echo "platforms=linux/amd64,linux/arm/v7,linux/arm64" >> $GITHUB_OUTPUT
159+
122160
echo $TAGS
123161
echo "tags=$TAGS" >> $GITHUB_OUTPUT
124162
echo "push=$PUSH" >> $GITHUB_OUTPUT
@@ -143,7 +181,7 @@ jobs:
143181
uses: docker/build-push-action@v5
144182
with:
145183
context: .
146-
platforms: linux/amd64, linux/arm64
184+
platforms: ${{ steps.nrVersion.outputs.platforms }}
147185
push: ${{ steps.nrVersion.outputs.push }}
148186
file: .docker/Dockerfile.alpine
149187
build-args: |

0 commit comments

Comments
 (0)