Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Oct 17, 2023
1 parent d7960f6 commit c33bb0d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 74 deletions.
58 changes: 23 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,56 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

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:
- uses: actions/checkout@v2
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
- name: Checkout repository
uses: actions/checkout@v3

- name: install mamba
uses: mamba-org/provision-with-micromamba@main
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-name: xeusqt

- name: install cxx compiler
shell: bash -l {0}
run: |
$HOME/micromamba-bin/micromamba install cxx-compiler libuuid -c conda-forge -y
environment-name: xeus-qt-python

- name: cmake configure
shell: bash -l {0}
run: |
mkdir -p build
cd build
cmake .. \
-DXEUS_BUILD_TESTS=ON \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
- name: build
shell: bash -l {0}
- name: Build
run: |
cd build
make -j 2
# make -j ${{ steps.cpu-cores.outputs.count }}
make
- name: install xeus-qt
shell: bash -l {0}
- name: Install
run: |
cd build
make install
win:

runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -72,15 +59,16 @@ jobs:
os: [ windows-2019, windows-2022 ]

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: install mamba
uses: mamba-org/provision-with-micromamba@main
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-name: xeus
environment-name: xeus-qt-python

- name: micromamba shell hook
- name: Micromamba shell hook
shell: powershell
run: |
micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root
Expand All @@ -91,7 +79,7 @@ jobs:
- name: cmake configure
shell: cmd
run: |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-qt-python
cmake .. ^
-G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
Expand All @@ -101,10 +89,10 @@ jobs:
-DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%"
working-directory: build

- name: build
- name: Build and install
shell: cmd
run: |
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus
call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus-qt-python
set CL=/MP
ninja install
working-directory: build
63 changes: 24 additions & 39 deletions env.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,28 @@
name: base
name: xeus-qt-python
channels:
- conda-forge

dependencies:
- cmake
- pkg-config
- zeromq
- cppzmq
- xtl
- OpenSSL
- nlohmann_json
- xeus >=3.0.0,<4
- xeus-qt >=0.1.2,<0.2
- xeus-python
- pybind11
- pybind11_json
- xeus >= 3.0.3
- xeus-zmq >= 1.0.2
- python=3.10
- jupyverse-api >=0.3.0,<1
- fps-lab >=0.3.0,<1
- fps-noauth >=0.3.0,<1
- fps-jupyterlab >=0.3.0,<1
- fps-contents >=0.3.0,<1
- fps-kernels >=0.3.0,<1
- fps-frontend >=0.3.0,<1
- pyside2
- pyqt
- PyQtWebEngine
- qtpy
- hatch
- git
- make
- cxx-compiler
- mesa-libgl-cos7-aarch64
- mesa-libgl-cos6-x86_64
- mesa-dri-drivers-cos6-x86_64
- libselinux-cos6-x86_64
- libxdamage-cos6-x86_64
- libxxf86vm-cos6-x86_64
- libxext-cos6-x86_64
- xorg-libxfixes
compilers
cmake
python <3.12
pip
qt
xeus
xeus-zmq
xeus-python
xtl
nlohmann_json
cppzmq
pybind11
pybind11_json
pyqt
qtpy
pyqtwebengine
pyside2
fps-lab >=0.3.0,<1
fps-auth >=0.3.0,<1
fps-jupyterlab >=0.3.0,<1
fps-contents >=0.3.0,<1
fps-kernels >=0.3.0,<1
fps-frontend >=0.3.0,<1

0 comments on commit c33bb0d

Please sign in to comment.