Skip to content

Commit 2fe35f8

Browse files
committed
tests: Add arm/v7
1 parent e5727e8 commit 2fe35f8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ concurrency:
44
cancel-in-progress: true
55

66
on:
7+
workflow_dispatch:
78
push:
89
branches: trunk
910
paths:
@@ -23,7 +24,7 @@ jobs:
2324
runs-on: ubuntu-latest
2425
strategy:
2526
matrix:
26-
platform: [amd64,arm64]
27+
platform: ['amd64', 'arm64', 'arm/v7']
2728
steps:
2829
- name: Checkout
2930
uses: actions/checkout@v4
@@ -32,6 +33,7 @@ jobs:
3233
with:
3334
platform: ${{ matrix.platform }}
3435
dependency_commands: |
36+
export -p
3537
sudo apt install -y libncursesw5-dev
3638
build_commands: |
3739
git clone --depth 1 https://github.com/theimpossibleastronaut/rmw

action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,26 @@ runs:
4545
id: linuxdeploy
4646
shell: bash
4747
run: |
48-
export -p
4948
case ${{ inputs.platform }} in
5049
'amd64')
5150
;;
5251
'arm64')
5352
;;
53+
'arm/v7')
54+
;;
5455
*)
5556
echo "Unsupported platform: ${{ inputs.platform }}"
5657
exit 1
5758
;;
5859
esac
5960
export HOSTUID=$(id -u)
6061
docker run \
61-
-e HOSTUID -e APPDIR=$APPDIR -e ACTION_WORKSPACE \
62-
--rm -v $(pwd):$ACTION_WORKSPACE -w $ACTION_WORKSPACE \
62+
-e HOSTUID -e APPDIR -e ACTION_WORKSPACE \
63+
--rm -v $(pwd):$ACTION_WORKSPACE \
6364
--platform linux/${{ inputs.platform }} -u root andy5995/linuxdeploy:latest \
64-
/bin/sh -c "usermod -u $HOSTUID builder && su builder -c 'export -p && \
65+
/bin/bash -c "usermod -u $HOSTUID builder && su builder -l -c 'export -p && \
6566
set -e && \
67+
cd $ACTION_WORKSPACE && \
6668
if [ -n \"${{ inputs.dependency_commands }}\" ]; then \
6769
eval \"${{ inputs.dependency_commands }}\"; \
6870
fi && \

0 commit comments

Comments
 (0)