Skip to content

Commit 91d565b

Browse files
committed
Download libgccjit-12-dev package in the CI
1 parent bfc184c commit 91d565b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-22.14 # Switch back to ubuntu-latest when it is 22.04
1717

1818
strategy:
1919
fail-fast: false
@@ -45,10 +45,17 @@ jobs:
4545
path: llvm
4646

4747
- name: Install packages
48+
run: |
49+
sudo apt-get update
4850
# `llvm-10-tools` is needed to install the `FileCheck` binary which is used for asm tests.
49-
run: sudo apt-get install ninja-build ripgrep llvm-10-tools
51+
sudo apt-get install ninja-build ripgrep llvm-10-tools
52+
53+
- name: Install libgccjit12
54+
if: matrix.libgccjit_version == 'libgccjit12.so'
55+
run: sudo apt-get install libgccjit-12-dev
5056

5157
- name: Download artifact
58+
if: matrix.libgccjit_version != 'libgccjit12.so'
5259
uses: dawidd6/action-download-artifact@v2
5360
with:
5461
workflow: main.yml
@@ -60,6 +67,12 @@ jobs:
6067
search_artifacts: true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
6168

6269
- name: Setup path to libgccjit
70+
if: matrix.libgccjit_version == 'libgccjit12.so'
71+
run: |
72+
echo /usr/lib/gcc/x86_64-linux-gnu/12 > gcc_path
73+
74+
- name: Setup path to libgccjit
75+
if: matrix.libgccjit_version != 'libgccjit12.so'
6376
run: |
6477
echo $(readlink -f gcc-build) > gcc_path
6578
# NOTE: the filename is still libgccjit.so even when the artifact name is different.

0 commit comments

Comments
 (0)