diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 127869ea..b6a7306b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,18 +20,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Configure - run: cmake -B build -S . -DBUILD_EXAMPLES=ON - - - name: Build - run: cmake --build build --config RelWithDebInfo --parallel $(nproc) - - - name: Test + - run: cmake -B build -S . -DBUILD_EXAMPLES=ON + - run: cmake --build build --config RelWithDebInfo --parallel $(nproc) + - run: ctest -C RelWithDebInfo --output-on-failure working-directory: build - run: ctest -C RelWithDebInfo --output-on-failure - - - name: Install - run: cmake --install build --config RelWithDebInfo --prefix pkg + - run: cmake --install build --config RelWithDebInfo --prefix pkg - uses: actions/upload-artifact@v4 with: @@ -57,27 +50,17 @@ jobs: with: fetch-depth: 0 - - name: Set up Python ${{ matrix.version }} - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.version }} - - name: Update version string - run: python3 ./tools/update_version.py - - - name: Install build and tox Python packages - run: pip3 install build tox - - - name: Build - run: python3 -m build --wheel - - - name: Repair wheel + - run: python3 ./tools/update_version.py + - run: pip3 install build tox + - run: python3 -m build --wheel + - run: python3 ../.github/workflows/repair_wheel.py sleipnirgroup_jormungandr-*.whl if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macOS') - run: python3 ../.github/workflows/repair_wheel.py sleipnirgroup_jormungandr-*.whl working-directory: dist - - - name: Test - run: python3 -m tox -e ${{ matrix.version }} + - run: python3 -m tox -e ${{ matrix.version }} - uses: actions/upload-artifact@v4 with: @@ -94,19 +77,13 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.12 - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: python-version: 3.12 - - name: Update version string - run: python3 ./tools/update_version.py - - - name: Install build and tox Python packages - run: pip3 install build tox - - - name: Build - run: python3 -m build --sdist + - run: python3 ./tools/update_version.py + - run: pip3 install build tox + - run: python3 -m build --sdist - uses: actions/upload-artifact@v4 with: @@ -147,14 +124,9 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Configure - run: cmake -B build -S . --toolchain ${{ matrix.toolchain }} -DBUILD_EXAMPLES=ON - - - name: Build - run: cmake --build build --config RelWithDebInfo --parallel $(nproc) - - - name: Install - run: cmake --install build --config RelWithDebInfo --prefix pkg + - run: cmake -B build -S . --toolchain ${{ matrix.toolchain }} -DBUILD_EXAMPLES=ON + - run: cmake --build build --config RelWithDebInfo --parallel $(nproc) + - run: cmake --install build --config RelWithDebInfo --prefix pkg - uses: actions/upload-artifact@v4 with: @@ -167,17 +139,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup emscripten - uses: numworks/setup-emscripten@latest - - - name: Configure - run: emcmake cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF - - - name: Build - run: cmake --build build --config Release --parallel $(nproc) + - uses: numworks/setup-emscripten@latest - - name: Install - run: cmake --install build --config Release --prefix pkg + - run: emcmake cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF + - run: cmake --build build --config Release --parallel $(nproc) + - run: cmake --install build --config Release --prefix pkg - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 6340c5c6..867cfe79 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -13,11 +13,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Create build directory - run: mkdir build - - - name: Run Doxygen - uses: mattnotmitt/doxygen-action@edge + - run: mkdir build + - uses: mattnotmitt/doxygen-action@edge with: doxyfile-path: 'docs/Doxyfile' diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 03cfd3da..91577cc1 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -20,16 +20,13 @@ jobs: git checkout -b pr git branch -f main origin/main - - name: Set up Python 3.8 - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - - name: Install wpiformat - run: pip3 install wpiformat==2024.33 + - run: pip3 install wpiformat==2024.33 - - name: Run - run: wpiformat==2024.33 + - run: wpiformat - name: Check output run: git --no-pager diff --exit-code HEAD @@ -67,10 +64,9 @@ jobs: git checkout -b pr git branch -f main origin/main - - name: Set up Python 3.8 - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - name: Install LLVM 17 run: | @@ -83,8 +79,7 @@ jobs: echo "CXX=clang++" >> $GITHUB_ENV echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV - - name: Install wpiformat - run: pip3 install wpiformat + - run: pip3 install wpiformat - name: Create compile_commands.json run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=YES diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index 1286c611..fad2fedf 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -40,12 +40,7 @@ jobs: echo "CXX=clang++" >> $GITHUB_ENV echo "CXXFLAGS=-stdlib=libc++" >> $GITHUB_ENV - - name: Configure - run: cmake -B build -S . ${{ matrix.cmake-flags }} -DBUILD_EXAMPLES=ON - - - name: Build - run: cmake --build build --target all --config RelWithDebInfo --parallel $(nproc) - - - name: Test + - run: cmake -B build -S . ${{ matrix.cmake-flags }} -DBUILD_EXAMPLES=ON + - run: cmake --build build --target all --config RelWithDebInfo --parallel $(nproc) + - run: ${{ matrix.ctest-env }} ctest -C RelWithDebInfo --output-on-failure working-directory: build - run: ${{ matrix.ctest-env }} ctest -C RelWithDebInfo --output-on-failure diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 7a34d0a2..c9d438ba 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -30,20 +30,14 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Create build directory - run: mkdir build - - name: Run Doxygen - uses: mattnotmitt/doxygen-action@edge + - uses: actions/checkout@v4 + - run: mkdir build + - uses: mattnotmitt/doxygen-action@edge with: doxyfile-path: 'docs/Doxyfile' - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + - uses: actions/configure-pages@v2 + - uses: actions/upload-pages-artifact@v1 with: path: build/docs/html - - name: Deploy to GitHub Pages + - uses: actions/deploy-pages@v1 id: deployment - uses: actions/deploy-pages@v1