1
+ name : Pixi (conda)
2
+
3
+ on : [push, pull_request]
4
+
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
+
10
+ jobs :
11
+ pixi_conda_build :
12
+ strategy :
13
+ matrix :
14
+ include :
15
+ - os : windows-latest
16
+ shell : " pwsh -Login {0}"
17
+ pixi_install : " iwr -useb https://pixi.sh/install.ps1 | iex"
18
+ build_depend : vs2022_win-64=19.*
19
+ tests_command : " 'PATH=\\\" $PATH;build/Release\\\" build/tests/Release/behaviortree_cpp_test.exe'"
20
+ - os : ubuntu-latest
21
+ shell : " bash -el {0}"
22
+ pixi_install : " curl -fsSL https://pixi.sh/install.sh | bash"
23
+ build_depend : " gxx=12.2.*"
24
+ tests_command : " ./build/tests/behaviortree_cpp_test"
25
+ runs-on : ${{ matrix.os }}
26
+ defaults :
27
+ run :
28
+ shell : ${{ matrix.shell }}
29
+ steps :
30
+ # Pixi is the tool used to create/manage conda environment
31
+ - name : Set up pixi
32
+ run : |
33
+ ${{ matrix.pixi_install }}
34
+ - name : Setup windows path
35
+ if : " startsWith(runner.os, 'windows')"
36
+ run : echo "C:\Users\runneradmin\AppData\Local\pixi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
37
+ - name : Make pixi workspace
38
+ run : |
39
+ pixi init build-env
40
+ - name : Install dependencies
41
+ working-directory : ${{github.workspace}}/build-env
42
+ run : |
43
+ pixi add cmake zeromq=4.3.4 gtest=1.12.* gmock=1.12.* sqlite=3.40.* ${{ matrix.build-depend }}
44
+ pixi install
45
+ - name : Create Build Directory
46
+ working-directory : ${{github.workspace}}/build-env
47
+ run : mkdir build
48
+ - uses : actions/checkout@v3
49
+ with :
50
+ path : build-env/BehaviorTree.CPP
51
+ - name : Build
52
+ working-directory : ${{github.workspace}}/build-env
53
+ run : |
54
+ pixi task add build "cd build; cmake ../BehaviorTree.CPP -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}; cmake --build . --parallel --config ${{env.BUILD_TYPE}}"
55
+ pixi run build
56
+ - name : Run tests
57
+ working-directory : ${{github.workspace}}/build-env
58
+ run : |
59
+ pixi task add tests ${{ matrix.tests_command }}
60
+ pixi run tests
61
+
62
+
63
+
64
+
0 commit comments