-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Taking v1 as the first release (#92)
- file reading - decoding master file
- Loading branch information
1 parent
ae71e23
commit d8d1f0c
Showing
87 changed files
with
9,860 additions
and
0 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,67 @@ | ||
name: Build the package using cmake then documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- v1 | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, ] # macos-12, windows-2019] | ||
python-version: ["3.12",] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
# The setup-miniconda action needs this to activate miniconda | ||
defaults: | ||
run: | ||
shell: "bash -l {0}" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get conda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
|
||
- name: Prepare | ||
run: conda install doxygen sphinx=7.1.2 breathe pybind11 sphinx_rtd_theme furo nlohmann_json zeromq fmt numpy | ||
|
||
- 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 | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
|
||
|
||
|
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,41 @@ | ||
name: Build packages but don't deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- v1 | ||
#run on PRs as well? | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, ] # macos-12, windows-2019] | ||
python-version: ["3.12",] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
# The setup-miniconda action needs this to activate miniconda | ||
defaults: | ||
run: | ||
shell: "bash -l {0}" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get conda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
|
||
- name: Prepare | ||
run: conda install conda-build conda-verify pytest anaconda-client | ||
|
||
- name: Build | ||
env: | ||
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | ||
run: conda build conda-recipe | ||
|
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,40 @@ | ||
name: Deploy to slsdetectorgroup conda channel | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, ] # macos-12, windows-2019] | ||
python-version: ["3.12",] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
# The setup-miniconda action needs this to activate miniconda | ||
defaults: | ||
run: | ||
shell: "bash -l {0}" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get conda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
channels: conda-forge | ||
|
||
- name: Prepare | ||
run: conda install conda-build conda-verify pytest anaconda-client | ||
|
||
- name: Enable upload | ||
run: conda config --set anaconda_upload yes | ||
|
||
- name: Build | ||
env: | ||
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | ||
run: conda build conda-recipe --user slsdetectorgroup --token ${CONDA_TOKEN} | ||
|
Oops, something went wrong.