Skip to content

Commit

Permalink
OPSEXP-2760 Switch to new ARM64 runners (#100)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
gionn authored Jul 31, 2024
1 parent 9485252 commit ea06cb8
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 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: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64-small' || 'ubuntu-latest' }}
needs:
- configure
strategy:
Expand All @@ -45,10 +45,6 @@ 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 @@ -70,7 +66,7 @@ jobs:

test_rpms:
name: Test ${{ matrix.base_image }} ${{ matrix.target_arch }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64-small' || 'ubuntu-latest' }}
needs:
- configure
- build_rpms
Expand All @@ -97,10 +93,6 @@ 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 Expand Up @@ -157,7 +149,7 @@ jobs:

build_deb:
name: Build ${{ matrix.base_image }} ${{ matrix.target_arch }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64-small' || 'ubuntu-latest' }}
needs:
- configure
strategy:
Expand All @@ -174,10 +166,6 @@ 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@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0

- name: Prepare image
run: docker build . -t buildenv --build-arg BASE_IMAGE=${{ matrix.base_image }}
working-directory: debs
Expand All @@ -200,7 +188,7 @@ jobs:

test_deb:
name: Test ${{ matrix.base_image }} ${{ matrix.target_arch }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.target_arch == 'aarch64' && 'ubuntu-latest-arm64-small' || 'ubuntu-latest' }}
needs:
- configure
- build_deb
Expand All @@ -221,10 +209,6 @@ 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@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0

- name: Download DEBs
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit ea06cb8

Please sign in to comment.