Skip to content

Commit fca372a

Browse files
committed
.github/workflows: install cross-compile toolchain before make release
GCC for x86_64 and aarch64 are already included in GitHub Actions' images, but not those for other architectures e.g. riscv64. Install all of them to make sure they are available.
1 parent 184ac2c commit fca372a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
with:
2222
go-version: 1.25.1
2323

24+
- name: Set up cross-compile toolchain
25+
run: |
26+
sudo apt install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu
27+
2428
- name: Generate the artifacts
2529
run: make release
2630

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
with:
1919
go-version: 1.25.1
2020

21+
- name: Set up cross-compile toolchain
22+
run: |
23+
apt install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu
24+
2125
- name: Check module vendoring
2226
run: |
2327
go mod tidy

0 commit comments

Comments
 (0)