File tree Expand file tree Collapse file tree 3 files changed +34
-38
lines changed Expand file tree Collapse file tree 3 files changed +34
-38
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
ci-ubuntu :
11
- runs-on : ubuntu-22.04
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-24.04, ubuntu-24.04-arm]
14
+ compiler :
15
+ - cc : gcc
16
+ cxx : g++
17
+ - cc : clang
18
+ cxx : clang++
19
+ runs-on : ${{ matrix.os }}
12
20
steps :
13
- - name : install clang
14
- shell : bash
15
- run : |
16
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
17
- echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" >> ./llvm.list
18
- echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" >> ./llvm.list
19
- sudo mv llvm.list /etc/apt/sources.list.d
20
- sudo apt update -y
21
- sudo apt install clang-17 -y
21
+ - uses : wx257osn2/cxx_environment@v2
22
+ with :
23
+ version : v20250216
22
24
- uses : actions/checkout@v4
23
25
with :
24
26
submodules : recursive
25
27
- uses : actions/cache@v4
28
+ id : cached
26
29
with :
27
- path : images
30
+ path : |
31
+ images
32
+ qoi_test_images
28
33
key : key
29
- - id : cached
30
- uses : andstor/file-existence-action@v3
31
- with :
32
- files : " images, qoi_test_images"
33
34
- name : get test/benchmark suite
34
- if : steps.cached.outputs.files_exists == 'false '
35
+ if : steps.cached.outputs.cache-hit != 'true '
35
36
shell : bash
36
37
run : |
37
38
curl -O https://qoiformat.org/qoi_test_images.zip
@@ -44,12 +45,12 @@ jobs:
44
45
pushd .dependencies/qoi
45
46
ln -s ../stb/stb_image.h .
46
47
ln -s ../stb/stb_image_write.h .
47
- make conv
48
+ cxx-env-run make conv CC:=${{ matrix.compiler.cc }}
48
49
popd
49
50
mv .dependencies/qoi/qoiconv bin/qoiconv_orig
50
51
- name : build
51
52
shell : bash
52
- run : CXX=clang++-17 make -j
53
+ run : cxx-env-run make -j CXX:=${{ matrix.compiler.cxx }}
53
54
- name : test
54
55
shell : bash
55
56
run : |
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
ci-mac :
11
- runs-on : macos-14
11
+ runs-on : macos-15
12
12
steps :
13
- - name : install clang
14
- shell : bash
15
- run : brew install llvm@17
16
13
- uses : actions/checkout@v4
17
14
with :
18
15
submodules : recursive
19
16
- uses : actions/cache@v4
17
+ id : cached
20
18
with :
21
- path : images
19
+ path : |
20
+ images
21
+ qoi_test_images
22
22
key : key
23
- - id : cached
24
- uses : andstor/file-existence-action@v3
25
- with :
26
- files : " images, qoi_test_images"
27
23
- name : get test/benchmark suite
28
- if : steps.cached.outputs.files_exists == 'false '
24
+ if : steps.cached.outputs.cache-hit != 'true '
29
25
shell : bash
30
26
run : |
31
27
curl -O https://qoiformat.org/qoi_test_images.zip
@@ -38,12 +34,12 @@ jobs:
38
34
pushd .dependencies/qoi
39
35
ln -s ../stb/stb_image.h .
40
36
ln -s ../stb/stb_image_write.h .
41
- make conv
37
+ CC=$(brew --prefix llvm@18)/bin/clang make conv
42
38
popd
43
39
mv .dependencies/qoi/qoiconv bin/qoiconv_orig
44
40
- name : build
45
41
shell : bash
46
- run : CXX=$(brew --prefix llvm@17 )/bin/clang++ make -j
42
+ run : CXX=$(brew --prefix llvm@18 )/bin/clang++ make -j
47
43
- name : test
48
44
shell : bash
49
45
run : |
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : windows-2022
11
+ runs-on : windows-2025
12
12
steps :
13
13
- uses : msys2/setup-msys2@v2
14
14
with :
@@ -25,15 +25,14 @@ jobs:
25
25
with :
26
26
submodules : recursive
27
27
- uses : actions/cache@v4
28
+ id : cached
28
29
with :
29
- path : images
30
+ path : |
31
+ images
32
+ qoi_test_images
30
33
key : key
31
- - id : cached
32
- uses : andstor/file-existence-action@v3
33
- with :
34
- files : " images, qoi_test_images"
35
34
- name : get test/benchmark suite
36
- if : steps.cached.outputs.files_exists == 'false '
35
+ if : steps.cached.outputs.cache-hit != 'true '
37
36
shell : msys2 {0}
38
37
run : |
39
38
curl -O https://qoiformat.org/qoi_test_images.zip
46
45
pushd .dependencies/qoi
47
46
ln -s ../stb/stb_image.h .
48
47
ln -s ../stb/stb_image_write.h .
49
- mingw32-make conv
48
+ CC=clang mingw32-make conv
50
49
popd
51
50
mv .dependencies/qoi/qoiconv.exe bin/qoiconv_orig.exe
52
51
- name : build
You can’t perform that action at this time.
0 commit comments