-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fetching sources of specific version with 'prerequisites' target
- Loading branch information
Showing
6 changed files
with
76 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: C/C++ CI Conan | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-on-windows: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Cache Boost dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ github.workspace }}/build/conan | ||
${{ github.workspace }}/build/CMakeFiles | ||
C:/Boost | ||
key: ${{ runner.os }}-boost-${{ hashFiles('**/conanfile.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-boost- | ||
- name: Create Build Dir | ||
run: cmake -E make_directory ${{github.workspace}}/build | ||
- name: Use Conan | ||
run: | | ||
pip install conan && conan profile detect | ||
echo "[requires]" > ${{github.workspace}}/conanfile.txt | ||
echo boost/1.84.0 >> ${{github.workspace}}/conanfile.txt | ||
echo leveldb/1.23 >> ${{github.workspace}}/conanfile.txt | ||
echo "[generators]" >> ${{github.workspace}}/conanfile.txt | ||
echo CMakeDeps >> ${{github.workspace}}/conanfile.txt | ||
echo CMakeToolchain >> ${{github.workspace}}/conanfile.txt | ||
- name: Configure | ||
working-directory: ${{github.workspace}}/build | ||
env: | ||
CC: cl | ||
run: cmake ${{github.workspace}} -DOPENMIND_USE_CONAN=ON -DOPENMIND_USE_VCPKG=NO -DOPENMIND_BUILD_SAMPLES=NO -DOPENMIND_BUILD_TESTS=ON -G "Ninja Multi-Config" -D CMAKE_C_COMPILER="cl.exe" -D CMAKE_CXX_COMPILER="cl.exe" -DOPENMIND_MATH_USE_LEVELDB_CACHE=ON -DOPENMIND_STORAGE_LEVELDB=ON | ||
- name: Install prerequisites with conan | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build ${{github.workspace}}/build --target Install__Conan --config Release | ||
- name: Reconfigure to detect newly installed prerequisites | ||
working-directory: ${{github.workspace}} | ||
run: cmake --preset conan-default | ||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
run: cmake --preset conan-default --build | ||
- name: Get number of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v2 | ||
id: cpu-cores | ||
- name: check | ||
working-directory: ${{github.workspace}} | ||
run: ctest --preset conan-default --timeout 240 -j ${{steps.cpu-cores.outputs.count}} -E "image_codec_test|ts|Polyfit_test" --output-on-failure | ||
# --rerun-failed --output-on-failure |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: C/C++ CI | ||
name: C/C++ CI Docker | ||
|
||
on: [push] | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: C/C++ CI | ||
name: C/C++ CI macOS | ||
|
||
on: [push] | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: C/C++ CI | ||
name: C/C++ CI Ubuntu | ||
|
||
on: [push] | ||
|
||
|
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