Skip to content

Commit e35c9fd

Browse files
ci: added arm64 image
1 parent 2cf1fa3 commit e35c9fd

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/images.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ jobs:
3232
env:
3333
HAS_DOCKER_CREDENTIALS: ${{ secrets.DOCKER_PASSWORD != '' }}
3434
name: ${{ matrix.cfg.name }}
35-
runs-on: ubuntu-latest
35+
# Output image architecture matches the runner's.
36+
runs-on: ${{ matrix.cfg.runs-on }}
3637
strategy:
3738
fail-fast: false
3839
matrix:
3940
cfg:
40-
- { name: Arch Linux, id: arch }
41-
- { name: CUDA (on Arch), id: cuda }
42-
- { name: CUDA Cross (on Ubuntu Jammy), id: cuda-cross }
43-
- { name: Fedora, id: fedora }
44-
- { name: Gentoo, id: gentoo }
45-
- { name: OpenSUSE, id: opensuse }
46-
- { name: Ubuntu Bionic, id: bionic }
47-
- { name: Ubuntu Rolling, id: ubuntu-rolling }
41+
- { name: Arch Linux, id: arch, runs-on: ubuntu-latest }
42+
- { name: CUDA (on Arch), id: cuda, runs-on: ubuntu-latest }
43+
- { name: CUDA Cross (on Ubuntu Jammy), id: cuda-cross, runs-on: ubuntu-latest }
44+
- { name: Fedora, id: fedora, runs-on: ubuntu-latest }
45+
- { name: Gentoo, id: gentoo, runs-on: ubuntu-latest }
46+
- { name: OpenSUSE, id: opensuse, runs-on: ubuntu-latest }
47+
- { name: Ubuntu Bionic, id: bionic, runs-on: ubuntu-latest }
48+
- { name: Ubuntu Rolling, id: ubuntu-rolling, runs-on: ubuntu-latest }
49+
- { name: Ubuntu Rolling AArch64, id: ubuntu-rolling, runs-on: ubuntu-24.04-arm }
4850
steps:
4951
# Need v3 because of bionic
5052
- uses: actions/checkout@v3

ci/ciimage/ubuntu-rolling/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ echo 'ulimit -n -S 10000' >> /ci/env_vars.sh
5151
ulimit -n -S 10000
5252
# dub stuff
5353
dub_fetch dubtestproject@1.2.0
54-
dub build dubtestproject:test1 --compiler=ldc2 --arch=x86_64
55-
dub build dubtestproject:test2 --compiler=ldc2 --arch=x86_64
56-
dub build dubtestproject:test3 --compiler=gdc --arch=x86_64
54+
dub build dubtestproject:test1 --compiler=ldc2 --arch="$(uname --machine)"
55+
dub build dubtestproject:test2 --compiler=ldc2 --arch="$(uname --machine)"
56+
dub build dubtestproject:test3 --compiler=ldc2 --arch="$(uname --machine)"
5757
dub_fetch urld@3.0.0
58-
dub build urld --compiler=gdc --arch=x86_64
58+
dub build urld --compiler=ldc2 --arch="$(uname --machine)"
5959

6060
# Remove debian version of Rust and install latest with rustup.
6161
# This is needed to get the cross toolchain as well.

0 commit comments

Comments
 (0)