Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSIS: test rebuild of C++ GUI (after the last changes from the C++ API for the Python iode package) #717

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 7 additions & 62 deletions .github/workflows/github-actions-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
jobs:
build_doc:
name: Build user documentation
runs-on: windows-latest
runs-on: ubuntu-latest
env:
build-config: windows-release
build-config: linux-release
# because of miniconda -> https://github.com/marketplace/actions/setup-miniconda#important
defaults:
run:
Expand All @@ -26,53 +26,11 @@ jobs:
uses: actions/checkout@v2
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- name: Install dependencies on linux
if: runner.os == 'Linux'
run: sudo apt install ninja-build
- name: Install dependencies on windows
if: runner.os == 'Windows'
run: |
choco install ninja
ninja --version
cmake --version
- name: Add cl.exe to PATH
if: runner.os == 'Windows'
# See https://github.com/marketplace/actions/enable-developer-command-prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
packages: scheme-full
cache: true
# WARNING: please read https://github.com/marketplace/actions/setup-miniconda#important
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
# declared as shell: bash -el {0} on steps that need to be properly activated
# (or use a default shell).
- name: Configure Conda
uses: conda-incubator/setup-miniconda@v2
with:
# channels: conda-forge, defaults
python-version: "3.11"
auto-update-conda: true
auto-activate-base: false
activate-environment: "py311"
- name: Check conda
run: conda info
- name: Conda environments
run: conda env list
- name: Install Python libraires
run: |
conda config --add channels conda-forge
conda config --add channels larray-project
conda install "numpy<2.0" pandas larray cython mypy pandoc ipython ipykernel numpydoc nbsphinx sphinx_rtd_theme myst-parser scikit-build-core pytest
- name: Check installed Python packages
run: conda list
sudo apt update
sudo apt install ninja-build texlive
- name: Print preset config
run: echo "${{ env.build-config }}"
# - To use the right Python (= conda) environment, cmake --preset <...> must be call AFTER setting up
# the Python (conda) environment
# - To let cmake find LaTeX compiler, cmake --preset <...> must be call AFTER installing the LaTeX compiler
- name: Configure CMake
# cmake --preset <configurePreset> where <configurePreset> is the name of the active Configure Preset.
# see CMakePresets.json file
Expand All @@ -82,27 +40,14 @@ jobs:
run: |
cmake --version
cmake --preset ${{ env.build-config }}
- name: Build the SCR4, C and C++ API libs
uses: ./.github/actions/build_api
with:
cmake-config: ${{ env.build-config }}
- name: Test the C and C++ APIs
uses: ./.github/actions/test_api
with:
cmake-config: ${{ env.build-config }}
- name: Build Python IODE (Cython)
run: cmake --build --verbose --preset ${{ env.build-config }} --target iode_cython
- name: Build User documentation (Sphinx)
run: cmake --build --verbose --preset ${{ env.build-config }} --target iode_doc
- name: Build Keyboard Shortcuts PDF
run: cmake --build --verbose --preset ${{ env.build-config }} --target keyboard_shortcuts
- name: Check files to upload
run: ls ${{ github.workspace }}/doc/build
- name: Upload documentation files
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: iode-doc
path: |
"${{ github.workspace }}/doc/build/iode.chm"
"${{ github.workspace }}/doc/build/iode.pdf"
"${{ github.workspace }}/doc/build/keyboard_shortcuts.pdf"
path: ${{ github.workspace }}/doc/build
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
18 changes: 18 additions & 0 deletions .github/workflows/github-actions-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ jobs:
name: iode-cli
path: ${{ github.workspace }}/assets

- name: Restore Python 3.10 Wheel Files
uses: actions/download-artifact@v4
with:
name: iode-python-3.10
path: ${{ github.workspace }}/assets

- name: Restore Python 3.11 Wheel Files
uses: actions/download-artifact@v4
with:
name: iode-python-3.11
path: ${{ github.workspace }}/assets

- name: Restore Python 3.12 Wheel Files
uses: actions/download-artifact@v4
with:
name: iode-python-3.12
path: ${{ github.workspace }}/assets

- name: Restore Windows Installer and Updater
uses: actions/download-artifact@v4
with:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading