File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ concurrency:
44 cancel-in-progress : true
55
66on :
7+ workflow_dispatch :
78 push :
89 branches : trunk
910 paths :
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
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
Original file line number Diff line number Diff 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 && \
You can’t perform that action at this time.
0 commit comments