File tree Expand file tree Collapse file tree 2 files changed +45
-38
lines changed
Expand file tree Collapse file tree 2 files changed +45
-38
lines changed Original file line number Diff line number Diff line change 1+ # TODO move to Github Actions after https://github.com/actions/runner/issues/385
12freebsd_task :
23 freebsd_instance :
34 image_family : freebsd-14-2
@@ -12,41 +13,3 @@ freebsd_task:
1213 test_script : make CXX=$CXX -j$(sysctl -n hw.ncpu) test
1314 env :
1415 LC_ALL : en_US.UTF-8
15-
16- linux_task :
17- locales_script :
18- - apt-get update && apt-get -y install locales
19- - echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
20- - locale-gen en_US.UTF-8
21- matrix :
22- - name : linux_clang
23- container :
24- image : silkeh/clang:13
25- env :
26- CXX : clang++
27- - name : linux_gcc
28- container :
29- image : gcc:10
30- memory : 8G
31- env :
32- CXX : g++
33- test_script : make CXX=$CXX -j$(nproc) test
34- env :
35- LC_ALL : en_US.UTF-8
36-
37- macos_task :
38- macos_instance :
39- image : ghcr.io/cirruslabs/macos-ventura-base:latest
40- matrix :
41- - name : macos_clang
42- clang_script : brew install llvm
43- env :
44- CXX : /opt/homebrew/opt/llvm/bin/clang++
45- - name : macos_gcc
46- gcc_script :
47- - /usr/sbin/softwareupdate --install-rosetta --agree-to-license
48- - arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
49- - arch -x86_64 /usr/local/bin/brew install gcc@12
50- env :
51- CXX : g++-12
52- test_script : make CXX=$CXX -j$(sysctl -n hw.ncpu) test
Original file line number Diff line number Diff line change 1+ name : Makefile CI
2+ on :
3+ push :
4+ branches : [ "master" ]
5+ pull_request :
6+ branches : [ "master" ]
7+ jobs :
8+ build :
9+ strategy :
10+ matrix :
11+ os : [ubuntu, macos]
12+ toolchain : [gcc, llvm]
13+ include :
14+ - os : ubuntu
15+ toolchain : gcc
16+ install_cmd : |
17+ sudo apt update
18+ sudo apt install g++
19+ CXX : g++
20+ - os : ubuntu
21+ toolchain : llvm
22+ install_cmd : |
23+ sudo apt update
24+ sudo apt install clang
25+ CXX : clang++
26+ - os : macos
27+ toolchain : gcc
28+ install_cmd : |
29+ brew update
30+ brew install gcc
31+ CXX : g++
32+ - os : macos
33+ toolchain : llvm
34+ install_cmd : |
35+ brew update
36+ brew install llvm
37+ CXX : clang++
38+ runs-on : ${{ matrix.os }}-latest
39+ steps :
40+ - uses : actions/checkout@v3
41+ - name : Install dependencies
42+ run : ${{ matrix.install_cmd }}
43+ - name : Build and test
44+ run : make CXX=${{ matrix.CXX }} -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) test
You can’t perform that action at this time.
0 commit comments