mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-23 23:30:02 +02:00

All checks were successful
Build on RHEL9 / buildh (push) Successful in 1m41s
Build and test on internal PSI gitea
67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
name: Build the package using cmake then documentation
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, ]
|
|
python-version: ["3.12",]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
defaults:
|
|
run:
|
|
shell: "bash -l {0}"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Get conda
|
|
uses: conda-incubator/setup-miniconda@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
environment-file: etc/dev-env.yml
|
|
miniforge-version: latest
|
|
channels: conda-forge
|
|
conda-remove-defaults: "true"
|
|
|
|
- name: Build library
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DAARE_SYSTEM_LIBRARIES=ON -DAARE_DOCS=ON
|
|
make -j 2
|
|
make docs
|
|
|
|
- name: Upload static files as artifact
|
|
id: deployment
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: build/docs/html/
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
if: github.ref == 'refs/heads/main'
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|
|
|
|
|
|
|
|
|