-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (32 loc) · 932 Bytes
/
linux.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
name: Check build on linux
on: ["push", "pull_request"]
jobs:
test:
name: "Test python ${{ matrix.python }} on ${{ matrix.ubuntu }}.04"
runs-on: "ubuntu-${{ matrix.ubuntu }}.04"
strategy:
matrix:
python: [3]
ubuntu: [20, 22]
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- run: |
sudo apt-get update
sudo apt-get install cmake libboost-all-dev libeigen3-dev python*-numpy python*-dev
echo $(sudo apt list --installed)
echo $(g++ --version)
- run: cmake -DPYTHON_EXECUTABLE=$(which python${{ matrix.python }}) .
- run: make -j2
- run: make test
check:
if: always()
needs:
- test
runs-on: Ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}