From 5b495a44d901b488759cab862ffb3189de2f5505 Mon Sep 17 00:00:00 2001 From: Eric Wyles <23637493+ericwyles@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:19:43 -0500 Subject: [PATCH] chore: refactor to skip qemu and tests on arm64 --- .github/workflows/tag-and-release.yaml | 11 +++++++---- tasks/publish.yaml | 12 +++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tag-and-release.yaml b/.github/workflows/tag-and-release.yaml index 85725ee..4561d1c 100644 --- a/.github/workflows/tag-and-release.yaml +++ b/.github/workflows/tag-and-release.yaml @@ -46,12 +46,15 @@ jobs: registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} ghToken: ${{ secrets.GITHUB_TOKEN }} - - name: Set up QEMU - if: ${{ runner.arch == 'ARM64' }} - uses: docker/setup-qemu-action@v3 + - name: Build Package + run: uds run -f tasks/publish.yaml build-package --set FLAVOR=${{ matrix.flavor }} + + - name: Test Package + if: ${{ runner.arch != 'ARM64' }} + run: uds run -f tasks/publish.yaml test-package --set FLAVOR=${{ matrix.flavor }} - name: Publish Package - run: UDS_ARCHITECTURE=${{ matrix.architecture }} uds run -f tasks/publish.yaml package --set FLAVOR=${{ matrix.flavor }} + run: uds run -f tasks/publish.yaml publish-package --set FLAVOR=${{ matrix.flavor }} - name: Debug Output if: ${{ always() }} diff --git a/tasks/publish.yaml b/tasks/publish.yaml index 32487f3..c7b927a 100644 --- a/tasks/publish.yaml +++ b/tasks/publish.yaml @@ -7,11 +7,14 @@ includes: - setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.5.0/tasks/setup.yaml tasks: - - name: package - description: Build and publish the packages - + - name: build-package + description: Build package actions: - task: create:package + + - name: test-package + description: Test the package + actions: - task: dependencies:create - task: create:test-bundle - task: setup:k3d-test-cluster @@ -19,6 +22,9 @@ tasks: - task: setup:create-doug-user - task: test:all + - name: publish-package + description: Publish the package + actions: - description: Publish the package task: publish:package with: