Skip to content

Commit 4833b09

Browse files
committed
Compile GCC on Ubuntu ARM
1 parent d6fe3bf commit 4833b09

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-24.04
12+
runs-on: ${{ matrix.os.image }}
1313

1414
strategy:
1515
fail-fast: false
1616
matrix:
17+
os:
18+
- { image: ubuntu-24.04, asset_name_suffix: "", arch: "amd64" }
19+
- { image: ubuntu-24.04-arm, asset_name_suffix: "-aarch64", arch: "arm64" }
1720
version:
18-
- { use_patch: true, asset_name: "gcc-15-without-int128.deb" }
19-
- { use_path: false, asset_name: "gcc-15.deb" }
21+
- { use_patch: true, asset_name: "gcc-15-without-int128" }
22+
- { use_path: false, asset_name: "gcc-15" }
2023

2124
steps:
2225
- uses: actions/checkout@v2
@@ -45,7 +48,7 @@ jobs:
4548
cat > install/DEBIAN/control << EOF
4649
Package: gcc-15
4750
Version: 15
48-
Architecture: amd64
51+
Architecture: ${{ matrix.os.arch }}
4952
Maintainer: Antoni Boucher <bouanto@zoho.com>
5053
Description: gcc 15 for rustc_codegen_gcc CI
5154
EOF
@@ -73,7 +76,7 @@ jobs:
7376
with:
7477
repo_token: ${{ secrets.GITHUB_TOKEN }}
7578
file: /home/runner/work/gcc/install/usr/lib/libgccjit.so.0.0.1
76-
asset_name: libgccjit.so
79+
asset_name: libgccjit${{ matrix.os.asset_name_suffix }}.so
7780
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}
7881

7982
- name: Create release
@@ -82,5 +85,5 @@ jobs:
8285
with:
8386
repo_token: ${{ secrets.GITHUB_TOKEN }}
8487
file: /home/runner/work/gcc/gcc-15.deb
85-
asset_name: ${{ matrix.version.asset_name }}
88+
asset_name: ${{ matrix.version.asset_name }}${{ matrix.os.asset_name_suffix }}.deb
8689
tag: master-${{ steps.tag_name.outputs.TAG_NAME }}

0 commit comments

Comments
 (0)