@@ -2,53 +2,21 @@ name: Pixi (conda)
22
33on : [push, pull_request]
44
5- env :
6- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7- # Note if this value is changed, has to be manually updated in the `windows-latest` tests_command
8- BUILD_TYPE : Release
9-
105jobs :
116 pixi_conda_build :
127 strategy :
138 matrix :
14- include :
15- - os : windows-latest
16- build_depend : vs2022_win-64=19.*
17- tests_command : " 'PATH=\\\" $PATH;build/Release\\\" build/tests/Release/behaviortree_cpp_test.exe'"
18- - os : ubuntu-latest
19- build_depend : " gxx=12.2.*"
20- tests_command : " ./build/tests/behaviortree_cpp_test"
9+ os :
10+ - windows-latest
11+ - ubuntu-latest
2112 runs-on : ${{ matrix.os }}
2213 steps :
2314 # Pixi is the tool used to create/manage conda environment
24- - uses : prefix-dev/setup-pixi@v0.4.1
25- with :
26- pixi-version : v0.7.0
27- locked : false
28- frozen : false
29- run-install : false
30- manifest-path : build-env/pixi.yaml
31- - name : Make pixi workspace
32- run : |
33- pixi init build-env
34- - name : Install dependencies
35- working-directory : ${{github.workspace}}/build-env
36- run : |
37- pixi add cmake zeromq=4.3.4 gtest=1.12.* gmock=1.12.* sqlite=3.40.* ${{ matrix.build-depend }}
38- pixi install
39- - name : Create Build Directory
40- working-directory : ${{github.workspace}}/build-env
41- run : mkdir build
4215 - uses : actions/checkout@v3
16+ - uses : prefix-dev/setup-pixi@v0.4.1
4317 with :
44- path : build-env/BehaviorTree.CPP
18+ pixi-version : v0.16.1
4519 - name : Build
46- working-directory : ${{github.workspace}}/build-env
47- run : |
48- pixi task add build "cd build; cmake ../BehaviorTree.CPP -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}; cmake --build . --parallel --config ${{env.BUILD_TYPE}}"
49- pixi run build
20+ run : pixi run build
5021 - name : Run tests
51- working-directory : ${{github.workspace}}/build-env
52- run : |
53- pixi task add tests ${{ matrix.tests_command }}
54- pixi run tests
22+ run : pixi run test
0 commit comments