Update #26
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unix: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: env.yml | |
environment-name: xeus-qt-python | |
- name: cmake configure | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DXEUS_BUILD_TESTS=ON \ | |
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \ | |
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX | |
- name: Build | |
run: | | |
cd build | |
make | |
- name: Install | |
run: | | |
cd build | |
make install | |
win: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-2019, windows-2022 ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: env.yml | |
environment-name: xeus-qt-python | |
- 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 | |
- name: cmake configure | |
shell: cmd | |
run: | | |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-qt-python | |
cmake .. ^ | |
-G Ninja ^ | |
-DCMAKE_BUILD_TYPE=Release ^ | |
-DXEUS_BUILD_TESTS=ON ^ | |
-DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" ^ | |
-DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" ^ | |
-DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%" | |
working-directory: build | |
- name: Build and install | |
shell: cmd | |
run: | | |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-qt-python | |
set CL=/MP | |
ninja install | |
working-directory: build |