Skip to content

Commit

Permalink
Bump test runner host images
Browse files Browse the repository at this point in the history
We do not have an arm ubuntu-24.04 runner yet
https://github.com/uraimo/run-on-arch-action
  • Loading branch information
alanz committed Jan 2, 2025
1 parent 85040cb commit d12fe30
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ci:
strategy:
matrix:
platform-arch: [ubuntu-20.04-x64, ubuntu-20.04-arm, macos-13-x64, macos-latest-arm]
platform-arch: [ubuntu-22.04-x64, ubuntu-22.04-arm, macos-latest-x64, macos-latest-arm]
otp-version: [25.3, 26.2, 27.1]
include:
- otp-version: 25.3
Expand All @@ -23,18 +23,18 @@ jobs:
- otp-version: 27.1
brew-otp-version: 27
vscode-publish: false
- platform-arch: ubuntu-20.04-x64
platform: ubuntu-20.04
- platform-arch: ubuntu-22.04-x64
platform: ubuntu-22.04
os: linux
target: x86_64-unknown-linux-gnu
vscode-target: linux-x64
- platform-arch: ubuntu-20.04-arm
platform: ubuntu-20.04
- platform-arch: ubuntu-22.04-arm
platform: ubuntu-22.04
os: linux
target: aarch64-unknown-linux-gnu
vscode-target: linux-arm64
- platform-arch: macos-13-x64
platform: macos-13
- platform-arch: macos-latest-x64
platform: macos-latest
os: macos
target: x86_64-apple-darwin
vscode-target: darwin-x64
Expand All @@ -54,7 +54,7 @@ jobs:
path: eqwalizer
ref: main
- name: Set up GraalVM
if: matrix.platform-arch != 'ubuntu-20.04-arm'
if: matrix.platform-arch != 'ubuntu-22.04-arm'
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
Expand All @@ -69,7 +69,7 @@ jobs:
with:
target: ${{ matrix.target }}
- name: Set up cross-compiler
if: matrix.platform-arch == 'ubuntu-20.04-arm'
if: matrix.platform-arch == 'ubuntu-22.04-arm'
run: |
sudo apt-get update
sudo apt-get install -y crossbuild-essential-arm64
Expand Down Expand Up @@ -100,15 +100,15 @@ jobs:
working-directory: eqwalizer/eqwalizer
run: "sbt assembly"
- name: Assemble eqwalizer binary
if: matrix.platform-arch != 'ubuntu-20.04-arm'
if: matrix.platform-arch != 'ubuntu-22.04-arm'
working-directory: eqwalizer/eqwalizer
run: 'native-image -H:IncludeResources=application.conf --no-server --no-fallback -jar target/scala-2.13/eqwalizer.jar eqwalizer'
- name: Assemble eqwalizer binary (qemu)
if: matrix.platform-arch == 'ubuntu-20.04-arm'
if: matrix.platform-arch == 'ubuntu-22.04-arm'
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu20.04
distro: ubuntu22.04
dockerRunArgs: |
--volume "${PWD}/eqwalizer/eqwalizer:/eqwalizer"
install: |
Expand All @@ -130,7 +130,7 @@ jobs:
/eqwalizer/eqwalizer
- name: Test elp
# Do not run the tests in case of cross-compilation
if: (matrix.platform-arch != 'ubuntu-20.04-arm') && (matrix.platform-arch != 'macos-latest-arm')
if: (matrix.platform-arch != 'ubuntu-22.04-arm') && (matrix.platform-arch != 'macos-latest-arm')
run: 'cargo test --no-default-features --workspace --target ${{ matrix.target }}'
- name: Build elp
run: 'cargo build --release --target ${{ matrix.target }} --config target.aarch64-unknown-linux-gnu.linker=\"aarch64-linux-gnu-gcc\"'
Expand Down

0 comments on commit d12fe30

Please sign in to comment.