From 32a94c21e69a7f8244b47b81bceaa51632fe3fe1 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Mon, 1 Jul 2024 15:44:55 +0200 Subject: [PATCH] build on aarch64 runner --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb80efc..c64376e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: build_rpms: name: Build ${{ matrix.base_image }} ${{ matrix.target_arch }} - runs-on: ubuntu-latest + runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }} needs: - configure strategy: @@ -45,6 +45,10 @@ jobs: echo "imagemagick_version=$(cat ./imagemagick-version)" >> $GITHUB_OUTPUT echo "imagemagick_release=$(cat ./release-version)" >> $GITHUB_OUTPUT + - name: Setup Docker Engine + if: matrix.target_arch == 'aarch64' + uses: Alfresco/alfresco-build-tools/.github/actions/setup-docker@9558268b491821a4cfce1f11d4c8f6e56adc8496 # v5.30.0 + - name: Prepare image run: docker build . -t buildenv --build-arg BASE_IMAGE=${{ matrix.base_image }} working-directory: rpms @@ -66,7 +70,7 @@ jobs: test_rpms: name: Test ${{ matrix.base_image }} ${{ matrix.target_arch }} - runs-on: ubuntu-latest + runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }} needs: - configure - build_rpms @@ -93,6 +97,10 @@ jobs: - name: List RPMs run: ls -R rpms/tests/*.rpm + - name: Setup Docker Engine + if: matrix.target_arch == 'aarch64' + uses: Alfresco/alfresco-build-tools/.github/actions/setup-docker@9558268b491821a4cfce1f11d4c8f6e56adc8496 # v5.30.0 + - name: Prepare image run: docker build . -t testenv --build-arg BASE_IMAGE=${{ matrix.base_image }} working-directory: rpms/tests/