Skip to content
Merged
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
43 changes: 19 additions & 24 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ on:

env:

# Arcane
ARCANE_BUILD_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/arcane_build'
ARCANE_INSTALL_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/arcane_install'
ARCANE_SOURCE_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/arcane'
SOURCE_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/framework'
BUILD_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/build'

DOC_DIR: '/__w/arcaneframework.github.io/arcaneframework.github.io/doc'

Expand All @@ -24,7 +22,6 @@ env:
CCACHE_MAXSIZE: 5G

# CMake
CM_BUILD_OPTS: "-j2"
CM_BUILD_TYPE: Release
CM_CCACHE_OPTS: "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
CM_COMPILER: '-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++'
Expand All @@ -34,11 +31,9 @@ jobs:
name: Build Arcane and documentations
runs-on: ubuntu-latest
container:
image: ghcr.io/arcaneframework/ubuntu-2004_gcc-11:latest
strategy:
fail-fast: false
steps:
image: ghcr.io/arcaneframework/ubuntu-2204:gcc-12_clang-14_doc_20220617

steps:
- name: Checkout doc
uses: actions/checkout@v3
with:
Expand All @@ -48,7 +43,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: arcaneframework/framework
path: ${{ env.ARCANE_SOURCE_DIR }}
path: ${{ env.SOURCE_DIR }}
submodules: true

- name: Get date
Expand All @@ -63,40 +58,40 @@ jobs:
key: ${{ env.CC_KEY_PREFIX }}-arcane-${{ env.CM_BUILD_TYPE }}-${{ steps.get-date.outputs.date }}-${{ github.run_number }}
restore-keys: ${{ env.CC_KEY_PREFIX }}-arcane-${{ env.CM_BUILD_TYPE }}-

- name: Install missing packages
shell: 'bash'
run: |
apt-get update -y
apt-get install -y texlive-full doxygen graphviz

- name: Configure
shell: bash
run: cmake -S ${{ env.ARCANE_SOURCE_DIR }} -B ${{ env.ARCANE_BUILD_DIR }} -DCMAKE_BUILD_TYPE=${{ env.CM_BUILD_TYPE }} ${{ env.CM_CCACHE_OPTS }} ${{ env.CM_COMPILER }}
run: |
cmake \
-S ${{ env.SOURCE_DIR }} \
-B ${{ env.BUILD_DIR }} \
-GNinja \
-DCMAKE_BUILD_TYPE=${{ env.CM_BUILD_TYPE }} \
${{ env.CM_CCACHE_OPTS }} \
${{ env.CM_COMPILER }}

- name: Build
shell: bash
run: |
cmake --build ${{ env.ARCANE_BUILD_DIR }} ${{ env.CM_BUILD_OPTS }}
cmake --build ${{ env.BUILD_DIR }}

- name: Build userdoc
shell: bash
run: |
cmake --build ${{ env.ARCANE_BUILD_DIR }} ${{ env.CM_BUILD_OPTS }} --target userdoc
cmake --build ${{ env.BUILD_DIR }} --target userdoc

- name: Build devdoc
shell: bash
run: |
cmake --build ${{ env.ARCANE_BUILD_DIR }} ${{ env.CM_BUILD_OPTS }} --target devdoc

cmake --build ${{ env.BUILD_DIR }} --target devdoc

- name: Move userdoc and devdoc
shell: bash
run: |
rm -rf ${{ env.DOC_DIR }}/arcane
mkdir -p ${{ env.DOC_DIR }}/arcane
mv ${{ env.ARCANE_BUILD_DIR }}/share/userdoc ${{ env.DOC_DIR }}/arcane
mv ${{ env.ARCANE_BUILD_DIR }}/share/devdoc ${{ env.DOC_DIR }}/arcane
mv ${{ env.BUILD_DIR }}/share/userdoc ${{ env.DOC_DIR }}/arcane
mv ${{ env.BUILD_DIR }}/share/devdoc ${{ env.DOC_DIR }}/arcane

- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3.8.0
with:
Expand Down