-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 907 Bytes
/
build_nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build on Ubuntu
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
pull_request:
jobs:
build:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.11','3.12']
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix
chmod +x mkn
./mkn clean build -p scope_timer test -a "-fPIC -std=c++17"
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: |
python3 -m pip install -r requirements.txt
./sh/lint.sh
export PATH="$PWD:$PATH"
./sh/test.sh