Skip to content

Commit 441c8b1

Browse files
committed
try fix ci
Signed-off-by: turuslan <[email protected]>
1 parent 6fa15d3 commit 441c8b1

File tree

2 files changed

+35
-22
lines changed

2 files changed

+35
-22
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,55 @@ on:
99
- master
1010

1111
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
1239
build:
1340
runs-on: ${{ matrix.os }}
1441
strategy:
1542
fail-fast: false
1643
matrix:
17-
# 3 jobs in total
18-
os: [ubuntu-latest, macos-14]
1944
compiler: [{
2045
"cc": "gcc",
2146
"cxx": "g++"
2247
}, {
2348
"cc": "clang",
2449
"cxx": "clang++"
2550
}]
26-
exclude:
27-
- os: macos-14
28-
compiler:
29-
cc: gcc
3051
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
4453
- name: cmake
4554
env:
4655
CC: ${{ matrix.compiler.cc }}
4756
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 .
5061
- name: build
5162
run: cmake --build build -- -j4
5263
- name: test

.github/workflows/clang-tidy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
clean: true
2121
fetch-depth: 1
2222
- name: run checks
23+
env:
24+
BUILD_DIR: build
2325
run: |
26+
#!/bin/bash -xe
2427
source /venv/bin/activate
25-
export BUILD_DIR=build
2628
cmake -G Ninja -B $BUILD_DIR .
2729
cmake --build $BUILD_DIR --target generated
2830
./housekeeping/clang-tidy-diff.sh

0 commit comments

Comments
 (0)