Skip to content

Commit

Permalink
build on aarch64 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn committed Jul 1, 2024
1 parent cfd18e8 commit 32a94c2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit 32a94c2

Please sign in to comment.