Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPSEXP-2760 Switch to new ARM64 runners #100

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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