forked from BehaviorTree/BehaviorTree.CPP
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
16 changed files
with
1,916 additions
and
874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,53 +2,21 @@ name: Pixi (conda) | |
|
||
on: [push, pull_request] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
# Note if this value is changed, has to be manually updated in the `windows-latest` tests_command | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
pixi_conda_build: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
build_depend: vs2022_win-64=19.* | ||
tests_command: "'PATH=\\\"$PATH;build/Release\\\" build/tests/Release/behaviortree_cpp_test.exe'" | ||
- os: ubuntu-latest | ||
build_depend: "gxx=12.2.*" | ||
tests_command: "./build/tests/behaviortree_cpp_test" | ||
os: | ||
- windows-latest | ||
- ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
# Pixi is the tool used to create/manage conda environment | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.7.0 | ||
locked: false | ||
frozen: false | ||
run-install: false | ||
manifest-path: build-env/pixi.yaml | ||
- name: Make pixi workspace | ||
run: | | ||
pixi init build-env | ||
- name: Install dependencies | ||
working-directory: ${{github.workspace}}/build-env | ||
run: | | ||
pixi add cmake zeromq=4.3.4 gtest=1.12.* gmock=1.12.* sqlite=3.40.* ${{ matrix.build-depend }} | ||
pixi install | ||
- name: Create Build Directory | ||
working-directory: ${{github.workspace}}/build-env | ||
run: mkdir build | ||
- uses: actions/checkout@v3 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
path: build-env/BehaviorTree.CPP | ||
pixi-version: v0.16.1 | ||
- name: Build | ||
working-directory: ${{github.workspace}}/build-env | ||
run: | | ||
pixi task add build "cd build; cmake ../BehaviorTree.CPP -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}; cmake --build . --parallel --config ${{env.BUILD_TYPE}}" | ||
pixi run build | ||
run: pixi run build | ||
- name: Run tests | ||
working-directory: ${{github.workspace}}/build-env | ||
run: | | ||
pixi task add tests ${{ matrix.tests_command }} | ||
pixi run tests | ||
run: pixi run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,8 @@ CMakeSettings.json | |
.DS_Store | ||
.idea/ | ||
cmake-build-debug/ | ||
|
||
# pixi environments | ||
.pixi | ||
|
||
CMakeUserPresets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.