17
17
build :
18
18
strategy :
19
19
matrix :
20
+ name : [rv32imcb, rv64imac]
21
+ os : [ubuntu-latest, ubuntu-24.04-arm]
20
22
include :
23
+ - os : ubuntu-latest
24
+ host_arch : x86_64
25
+ - os : ubuntu-24.04-arm
26
+ host_arch : aarch64
21
27
- name : rv32imcb
22
28
display_name : Toolchains targeting Ibex with bit-manipulation extensions
23
29
target : riscv32-unknown-elf
@@ -41,10 +47,10 @@ jobs:
41
47
# target: riscv64-unknown-linux-gnu
42
48
# output_dir: /opt/riscv-linux-toolchain
43
49
44
- name : ${{ matrix.display_name }}
45
- runs-on : ubuntu-latest
50
+ name : ${{ matrix.host_arch }} build of ${{ matrix. display_name }}
51
+ runs-on : ${{ matrix.os }}
46
52
# This is an AlmaLinux 8 based image
47
- container : quay.io/pypa/manylinux_2_28_x86_64
53
+ container : quay.io/pypa/manylinux_2_28_${{ matrix.host_arch }}
48
54
timeout-minutes : 360
49
55
50
56
steps :
64
70
sudo mkdir -p /tools/riscv
65
71
sudo chmod 0777 /tools/riscv
66
72
73
+ echo ::group::Set the host architecture env var
74
+ echo "HOST_ARCH=${{ matrix.host_arch }}" >> "$GITHUB_ENV"
75
+ echo ::endgroup::
76
+
67
77
echo ::group::Set the release tag env var
68
78
echo "RELEASE_TAG=$(./release_tag.sh)" >> "$GITHUB_ENV"
69
79
echo ::endgroup::
95
105
96
106
- uses : actions/upload-artifact@v4
97
107
with :
98
- name : ${{ matrix.name }}-toolchains
108
+ name : ${{ matrix.name }}-${{ matrix.host_arch }}- toolchains
99
109
path : ${{ env.ARTIFACT_STAGING_DIR }}
100
110
101
111
- name : Check tarballs
@@ -117,5 +127,5 @@ jobs:
117
127
gh release create "$RELEASE_TAG" --prerelease || echo "release exists"
118
128
# Upload this job's artifacts.
119
129
gh release upload "$RELEASE_TAG" --clobber \
120
- "${ARTIFACT_STAGING_DIR}/lowrisc-toolchain-${{ matrix.name }}-${RELEASE_TAG}.tar.xz" \
121
- "${ARTIFACT_STAGING_DIR}/lowrisc-toolchain-gcc-${{ matrix.name }}-${RELEASE_TAG}.tar.xz"
130
+ "${ARTIFACT_STAGING_DIR}/lowrisc-toolchain-${{ matrix.name }}-${HOST_ARCH}-${ RELEASE_TAG}.tar.xz" \
131
+ "${ARTIFACT_STAGING_DIR}/lowrisc-toolchain-gcc-${{ matrix.name }}-${HOST_ARCH}-${ RELEASE_TAG}.tar.xz"
0 commit comments