File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
build :
16
- runs-on : ubuntu-20 .04
16
+ runs-on : ubuntu-22.14 # Switch back to ubuntu-latest when it is 22 .04
17
17
18
18
strategy :
19
19
fail-fast : false
@@ -45,10 +45,17 @@ jobs:
45
45
path : llvm
46
46
47
47
- name : Install packages
48
+ run : |
49
+ sudo apt-get update
48
50
# `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
50
56
51
57
- name : Download artifact
58
+ if : matrix.libgccjit_version != 'libgccjit12.so'
52
59
uses : dawidd6/action-download-artifact@v2
53
60
with :
54
61
workflow : main.yml
60
67
search_artifacts : true # Because, instead, the action only check the last job ran and that won't work since we want multiple artifacts.
61
68
62
69
- 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'
63
76
run : |
64
77
echo $(readlink -f gcc-build) > gcc_path
65
78
# NOTE: the filename is still libgccjit.so even when the artifact name is different.
You can’t perform that action at this time.
0 commit comments