File tree Expand file tree Collapse file tree 2 files changed +35
-22
lines changed Expand file tree Collapse file tree 2 files changed +35
-22
lines changed Original file line number Diff line number Diff line change 9
9
- master
10
10
11
11
jobs :
12
+ MacOS :
13
+ runs-on : macos-14
14
+ steps :
15
+ - uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
16
+ - name : install
17
+ run : |
18
+ python3 -m venv ~/venv
19
+ source ~/venv/bin/activate
20
+ sudo python3 -m pip install --upgrade pip
21
+ sudo python3 -m pip install scikit-build
22
+ sudo python3 -m pip install cmake==3.25 requests gitpython gcovr
23
+ brew install ninja
24
+ - name : cmake
25
+ env :
26
+ CURL_SSL_BACKEND : SecureTransport
27
+ run : |
28
+ source ~/venv/bin/activate
29
+ cmake -G Ninja -B build .
30
+ - name : build
31
+ run : cmake --build build -- -j4
32
+ - name : test
33
+ env :
34
+ CTEST_OUTPUT_ON_FAILURE : 1
35
+ run : cmake --build build --target test
36
+ Linux :
37
+ runs-on : ubuntu-latest
38
+ container : qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc
12
39
build :
13
40
runs-on : ${{ matrix.os }}
14
41
strategy :
15
42
fail-fast : false
16
43
matrix :
17
- # 3 jobs in total
18
- os : [ubuntu-latest, macos-14]
19
44
compiler : [{
20
45
" cc " : " gcc" ,
21
46
" cxx " : " g++"
22
47
}, {
23
48
" cc " : " clang" ,
24
49
" cxx " : " clang++"
25
50
}]
26
- exclude :
27
- - os : macos-14
28
- compiler :
29
- cc : gcc
30
51
steps :
31
- - uses : actions/checkout@v1
32
- name : checkout
33
- with :
34
- submodules : true
35
- clean : true
36
- fetch-depth : 1
37
- - name : install dependencies
38
- run : |
39
- set -e
40
-
41
- sudo python3 -m pip install --upgrade pip
42
- sudo pip3 install scikit-build
43
- sudo pip3 install cmake=="3.25.0" requests gitpython gcovr pyyaml
52
+ - uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6
44
53
- name : cmake
45
54
env :
46
55
CC : ${{ matrix.compiler.cc }}
47
56
CXX : ${{ matrix.compiler.cxx }}
48
- CURL_SSL_BACKEND : SecureTransport
49
- run : cmake . -Bbuild
57
+ run : |
58
+ #!/bin/bash -xe
59
+ source /venv/bin/activate
60
+ cmake -B build .
50
61
- name : build
51
62
run : cmake --build build -- -j4
52
63
- name : test
Original file line number Diff line number Diff line change 20
20
clean : true
21
21
fetch-depth : 1
22
22
- name : run checks
23
+ env :
24
+ BUILD_DIR : build
23
25
run : |
26
+ #!/bin/bash -xe
24
27
source /venv/bin/activate
25
- export BUILD_DIR=build
26
28
cmake -G Ninja -B $BUILD_DIR .
27
29
cmake --build $BUILD_DIR --target generated
28
30
./housekeeping/clang-tidy-diff.sh
You can’t perform that action at this time.
0 commit comments