diff --git a/.github/workflows/test-appimage-aarch64.yml b/.github/workflows/test-appimage-aarch64.yml new file mode 100644 index 0000000..eb433a8 --- /dev/null +++ b/.github/workflows/test-appimage-aarch64.yml @@ -0,0 +1,23 @@ +name: Test appimage aarch64 +on: + push: + branches: + - 'main' + - 'releases/**' + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./ # pguyot/arm-runner-action@HEAD + with: + cpu: cortex-a53 + base_image: raspios_lite_arm64:latest + commands: | + sudo apt install libfuse2 -y + wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-aarch64.AppImage + chmod +x appimagetool-aarch64.AppImage + ./appimagetool-aarch64.AppImage --version diff --git a/.github/workflows/test-appimage-armv7l.yml b/.github/workflows/test-appimage-armv7l.yml new file mode 100644 index 0000000..36de387 --- /dev/null +++ b/.github/workflows/test-appimage-armv7l.yml @@ -0,0 +1,22 @@ +name: Test appimage armv7l +on: + push: + branches: + - 'main' + - 'releases/**' + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./ # pguyot/arm-runner-action@HEAD + with: + cpu: cortex-a8 + commands: | + sudo apt install libfuse2 -y + wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-armhf.AppImage + chmod +x appimagetool-armhf.AppImage + ./appimagetool-armhf.AppImage --version diff --git a/action.yml b/action.yml index ebdbdbd..8082fdb 100644 --- a/action.yml +++ b/action.yml @@ -132,7 +132,9 @@ runs: sudo update-binfmts --unimport qemu-arm || echo "warning: could not unimport qemu-arm" sudo update-binfmts --unimport qemu-aarch64 || echo "warning: could not unimport qemu-aarch64" sudo update-binfmts --package arm-runner-action --install arm-runner-action-qemu-arm /usr/bin/qemu-arm-static0 --magic '\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' --credentials yes --fix-binary yes + sudo update-binfmts --package arm-runner-action --install arm-runner-action-qemu-arm1 /usr/bin/qemu-arm-static0 --magic '\x7f\x45\x4c\x46\x01\x01\x01\x00\x41\x49\x02\x00\x00\x00\x00\x00\x02\x00\x28\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' --credentials yes --fix-binary yes sudo update-binfmts --package arm-runner-action --install arm-runner-action-qemu-aarch64 /usr/bin/qemu-aarch64-static0 --magic '\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' --credentials yes --fix-binary yes + sudo update-binfmts --package arm-runner-action --install arm-runner-action-qemu-aarch641 /usr/bin/qemu-aarch64-static0 --magic '\x7f\x45\x4c\x46\x02\x01\x01\x00\x41\x49\x02\x00\x00\x00\x00\x00\x02\x00\xb7\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff' --credentials yes --fix-binary yes - name: Download base image run: | @@ -303,7 +305,9 @@ runs: shell: bash run: | sudo update-binfmts --package arm-runner-action --remove arm-runner-action-qemu-arm /usr/bin/qemu-arm-static0 + sudo update-binfmts --package arm-runner-action --remove arm-runner-action-qemu-arm1 /usr/bin/qemu-arm-static0 sudo update-binfmts --package arm-runner-action --remove arm-runner-action-qemu-aarch64 /usr/bin/qemu-aarch64-static0 + sudo update-binfmts --package arm-runner-action --remove arm-runner-action-qemu-aarch641 /usr/bin/qemu-aarch64-static0 sudo rm /usr/bin/qemu-arm-static0 sudo rm /usr/bin/qemu-aarch64-static0 sudo update-binfmts --import qemu-arm || echo "warning: could not import qemu-arm"