all together now #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test the Mattermost Package on arm64 with qemu | |
on: | |
push: | |
branches: | |
- ewyles/test-qemu | |
permissions: | |
contents: read | |
jobs: | |
test-qemu: | |
runs-on: ${{ matrix.architecture == 'arm64' && 'uds-ubuntu-arm64-4-core' || 'ubuntu-latest' }} | |
strategy: | |
matrix: | |
flavor: [upstream, registry1] | |
architecture: [amd64, arm64] | |
exclude: | |
- flavor: registry1 | |
architecture: arm64 | |
name: Test QEMU ${{ matrix.flavor }} ${{ matrix.architecture }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Environment setup | |
uses: defenseunicorns/uds-common/.github/actions/setup@4cea6c8858b9f4db3a3624a6fc046db77e1f4eaa # v0.5.0 | |
with: | |
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | |
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | |
ghToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
if: ${{ runner.architecture == 'ARM64' }} | |
uses: docker/setup-qemu-action@v3 | |
- name: Test Package | |
run: UDS_ARCHITECTURE=${{ matrix.architecture }} uds run test-package --set FLAVOR=${{ matrix.flavor }} | |
- name: Debug Output | |
if: ${{ always() }} | |
uses: defenseunicorns/uds-common/.github/actions/debug-output@4cea6c8858b9f4db3a3624a6fc046db77e1f4eaa # v0.5.0 | |
- name: Save logs | |
if: always() | |
uses: defenseunicorns/uds-common/.github/actions/save-logs@4cea6c8858b9f4db3a3624a6fc046db77e1f4eaa # v0.5.0 | |
with: | |
suffix: ${{ matrix.flavor }}-${{ matrix.architecture }}-${{ github.run_id }}-${{ github.run_attempt }} |