7
7
strategy :
8
8
fail-fast : false
9
9
matrix :
10
- sdk : ["20.12 .1", "21.4 .1", "22.6.1 "]
10
+ sdk : ["21.4 .1", "22.6 .1", "23.7.3 "]
11
11
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
15
- name : Delete unused packages
16
16
run : |
17
- # commands lifted from https://github.com/jlumbroso/free-disk-space
17
+ # runners have 150GB of disk space and the Ubuntu image is big so we sometimes found it ran out of space for MESA
18
+ # others have encountered this too so we took commands from this action
19
+ # https://github.com/jlumbroso/free-disk-space
20
+ # currently commented because we don't need it and these commands can need changing when the Ubuntu image changes
18
21
sudo rm -rf /usr/local/lib/android
19
- sudo apt-get remove -y '^aspnetcore-.*'
20
- sudo apt-get remove -y '^dotnet-.*' # 990 MB
21
- sudo apt-get remove -y '^llvm-.*' # 1052 MB
22
+ # sudo apt-get remove -y '^aspnetcore-.*'
23
+ # sudo apt-get remove -y '^dotnet-.*' # 990 MB
24
+ # sudo apt-get remove -y '^llvm-.*' # 1052 MB
22
25
# sudo apt-get remove -y 'php.*' # 56.6 MB
23
26
# sudo apt-get remove -y '^mysql-.*' # 209 MB
24
- sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri # 2274 MB
27
+ # sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri # 2274 MB
25
28
sudo apt-get autoremove -y # 771 MB
26
29
sudo apt-get clean
27
30
42
45
- name : Git LFS Pull
43
46
run : git lfs pull
44
47
if : steps.lfs-cache.outputs.cache-hit != 'true'
45
-
48
+
46
49
- name : Git LFS Checkout
47
50
run : git lfs checkout
48
51
if : steps.lfs-cache.outputs.cache-hit == 'true'
61
64
key : ${{ runner.os }}-${{matrix.sdk}}
62
65
63
66
64
- - name : Get SDK ${{ runner.os }} '20.12.1'
65
- if : ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '20.12.1') }}
66
- run : |
67
- wget -q https://zenodo.org/record/4587206/files/mesasdk-x86_64-linux-20.12.1.tar.gz
68
- shell : bash
69
-
70
67
- name : Get SDK ${{ runner.os }} '21.4.1'
71
68
if : ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '21.4.1') }}
72
69
run : |
79
76
wget -q https://zenodo.org/record/7457681/files/mesasdk-x86_64-linux-22.6.1.tar.gz
80
77
shell : bash
81
78
79
+ - name : Get SDK ${{ runner.os }} '23.7.3'
80
+ if : ${{ (steps.cache.outputs.cache-hit != 'true') && ( matrix.sdk == '23.7.3') }}
81
+ run : |
82
+ wget -q https://zenodo.org/record/10624843/files/mesasdk-x86_64-linux-23.7.3.tar.gz
83
+ shell : bash
84
+
82
85
- name : Unpack SDK ${{ runner.os }} ${{matrix.sdk}}
83
86
run : |
84
87
tar xvf mesasdk-x86_64-linux-${{matrix.sdk}}.tar.gz
@@ -87,10 +90,10 @@ jobs:
87
90
- name : Compile
88
91
shell : bash
89
92
run : |
90
- # Linux runners have 2 cores
91
- # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported- runners-and-hardware-resources
92
- export OMP_NUM_THREADS=2
93
- export NPROCS=2
93
+ # Linux runners have 4 cores
94
+ # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted- runners-for-public-repositories
95
+ export OMP_NUM_THREADS=4
96
+ export NPROCS=4
94
97
export "MESASDK_ROOT=$(readlink -f mesasdk)"
95
98
source "${MESASDK_ROOT}/bin/mesasdk_init.sh"
96
99
export "MESA_DIR=$(readlink -f ./)"
0 commit comments