-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8c88bf
commit 5d6c854
Showing
2 changed files
with
18 additions
and
24 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: pre-commit/[email protected] | ||
|
||
unix: | ||
|
@@ -29,26 +29,26 @@ jobs: | |
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install mamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
- name: Get number of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v2 | ||
|
||
- name: Install micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: environment-dev.yml | ||
environment-name: xwidgets | ||
|
||
- name: Cmake configure | ||
shell: bash -l -eo pipefail {0} | ||
run: > | ||
cmake -B build -Werror=dev | ||
${CMAKE_ARGS} | ||
-D CMAKE_BUILD_TYPE=Release | ||
-D XWIDGETS_BUILD_TESTS=ON | ||
-D CMAKE_PREFIX_PATH="${CONDA_PREFIX}" | ||
run: | | ||
cmake -B build -Werror=dev \ | ||
${CMAKE_ARGS} \ | ||
-D CMAKE_BUILD_TYPE=Release \ | ||
-D XWIDGETS_BUILD_TESTS=ON \ | ||
-D CMAKE_PREFIX_PATH="${CONDA_PREFIX}" \ | ||
-D CMAKE_INSTALL_PREFIX="${CONDA_PREFIX}" | ||
- name: Build | ||
shell: bash -l -eo pipefail {0} | ||
run: cmake --build build/ --parallel 2 | ||
|
||
- name: Test xwidgets | ||
|
@@ -82,18 +82,13 @@ jobs: | |
os: [windows-2019, windows-2022] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install mamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
- name: Install micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
init-shell: cmd.exe | ||
environment-file: environment-dev.yml | ||
environment-name: xwidgets | ||
|
||
- name: micromamba shell hook | ||
shell: powershell | ||
run: | | ||
micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root | ||
|
||
- name: Make build directory | ||
run: mkdir build | ||
|
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