diff --git a/.github/workflows/github-actions-doc.yml b/.github/workflows/github-actions-doc.yml index 24e5449d9..004baf66d 100644 --- a/.github/workflows/github-actions-doc.yml +++ b/.github/workflows/github-actions-doc.yml @@ -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: @@ -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 where is the name of the active Configure Preset. # see CMakePresets.json file @@ -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` diff --git a/.github/workflows/github-actions-release.yml b/.github/workflows/github-actions-release.yml index a62575b2c..ea89fa462 100644 --- a/.github/workflows/github-actions-release.yml +++ b/.github/workflows/github-actions-release.yml @@ -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: diff --git a/doc/build/dev/CONVERSIONS.md b/doc/dev/CONVERSIONS.md similarity index 100% rename from doc/build/dev/CONVERSIONS.md rename to doc/dev/CONVERSIONS.md diff --git a/doc/build/dev/DESCRIPTION.md b/doc/dev/DESCRIPTION.md similarity index 100% rename from doc/build/dev/DESCRIPTION.md rename to doc/dev/DESCRIPTION.md diff --git a/doc/build/dev/ESTIM.md b/doc/dev/ESTIM.md similarity index 100% rename from doc/build/dev/ESTIM.md rename to doc/dev/ESTIM.md diff --git a/doc/build/dev/IDENTITIES.md b/doc/dev/IDENTITIES.md similarity index 100% rename from doc/build/dev/IDENTITIES.md rename to doc/dev/IDENTITIES.md diff --git a/doc/build/dev/LEC.md b/doc/dev/LEC.md similarity index 100% rename from doc/build/dev/LEC.md rename to doc/dev/LEC.md diff --git a/doc/build/dev/PRINTING.md b/doc/dev/PRINTING.md similarity index 100% rename from doc/build/dev/PRINTING.md rename to doc/dev/PRINTING.md diff --git a/doc/build/dev/REPORTS.md b/doc/dev/REPORTS.md similarity index 100% rename from doc/build/dev/REPORTS.md rename to doc/dev/REPORTS.md diff --git a/doc/build/dev/SIMUL.md b/doc/dev/SIMUL.md similarity index 100% rename from doc/build/dev/SIMUL.md rename to doc/dev/SIMUL.md diff --git a/doc/build/dev/TBL_CALC.md b/doc/dev/TBL_CALC.md similarity index 100% rename from doc/build/dev/TBL_CALC.md rename to doc/dev/TBL_CALC.md