@@ -12,59 +12,29 @@ jobs:
12
12
- {
13
13
name : " Ubuntu-gcc" ,
14
14
os : ubuntu-latest,
15
- set_path : " export PATH=$PATH:/home/runner/.local/bin" ,
16
- conan_profile : ' ./tools/profiles/ubuntu_gcc_Release_gh.txt' ,
17
- cc : " gcc-9" ,
18
- cxx : " g++-9"
15
+ OS : " ubuntu" ,
16
+ compiler : " gcc"
19
17
}
20
18
- {
21
19
name : " macOs-clang" ,
22
20
os : macos-latest,
23
- set_path : " " ,
24
- conan_profile : ' ./tools/profiles/macos_clang_Release_gh.txt' ,
25
- cc : " clang" ,
26
- cxx : " clang++"
21
+ OS : " macos" ,
22
+ compiler : " clang"
27
23
}
28
24
- {
29
25
name : " Windows-msvc" ,
30
26
os : windows-2019,
31
- set_path : " " ,
32
- conan_profile : ' ./tools/profiles/win_msvc_Release_gh.txt' ,
33
- cc : " " ,
34
- cxx : " "
27
+ OS : " win" ,
28
+ compiler : " msvc"
35
29
}
36
30
steps :
37
31
- name : Check out repository
38
32
uses : actions/checkout@v3
39
33
with :
40
34
path : ' pagoda'
41
35
42
- - name : Download and Install Dependencies
43
- run : |
44
- python3 -m venv ${{ github.workspace }}/build_env
45
- source ${{ github.workspace }}/build_env/bin/activate
46
- pip3 install wheel setuptools numpy
47
- pip3 install -r ${{ github.workspace }}/pagoda/requirements.txt
48
-
49
- - name : Download and Install Dependencies (Ubuntu)
50
- if : ${{ contains(matrix.config.os, 'Ubuntu') }}
51
- run : |
52
- sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev build-essential
53
-
54
- - name : Configure and Build
55
- env :
56
- CC : ${{ matrix.config.cc }}
57
- CXX : ${{ matrix.config.cxx }}
58
- CONAN_SYSREQUIRES_MODE : " enabled"
59
- run : |
60
- source ${{ github.workspace }}/build_env/bin/activate
61
- ${{ matrix.config.set_path }}
62
- pushd ${{ github.workspace }}/pagoda
63
- git submodule update --init --recursive
64
- conan install --profile:build=${{ github.workspace}}/pagoda/${{ matrix.config.conan_profile }} --profile:host=${{ github.workspace}}/pagoda/${{ matrix.config.conan_profile }} -of ${{ github.workspace }}/build ${{ github.workspace }}/pagoda --build=missing
65
- cmake --preset conan-release
66
- cmake --build ${{ github.workspace }}/build -j 24
67
- popd
36
+ - name : Build
37
+ run : ${{ github.workspace }}/pagoda/build.sh ${{ github.workspace }} ${{ matrix.config.OS }} ${{ matrix.config.compiler }}
68
38
69
39
- name : Run tests
70
40
run : |
0 commit comments