diff --git a/.github/workflows/_build_and_package.yml b/.github/workflows/_build_and_package.yml index 548959f991..6e3612d54c 100644 --- a/.github/workflows/_build_and_package.yml +++ b/.github/workflows/_build_and_package.yml @@ -58,29 +58,3 @@ jobs: conanHash: ${{ inputs.conanHash }} osxTargetDeploymentVersion: ${{ inputs.osxTargetDeploymentVersion }} - BuildLinux: - strategy: - fail-fast: false - matrix: - target: [ dissolve, dissolve-gui ] - runs-on: ubuntu-latest - steps: - - name: 'Download Source Tarfiles' - uses: actions/download-artifact@v4 - with: - name: source - - - name: 'Unpack Source' - shell: bash - run: tar -xvf dissolve-versioned-source.tar - - - name: "Build, Test, Package (Linux, ${{ matrix.target }})" - uses: "./.github/workflows/build" - with: - target: ${{ matrix.target }} - currentVersion: ${{ inputs.currentVersion }} - nixHash: ${{ inputs.nixHash }} - benchmark: ${{ inputs.benchmark }} - publishBenchmarks: ${{ inputs.publishBenchmarks }} - osxTargetDeploymentVersion: ${{ inputs.osxTargetDeploymentVersion }} - diff --git a/.github/workflows/build/osx/action.yml b/.github/workflows/build/osx/action.yml index 78e23117b4..c4f54b9090 100644 --- a/.github/workflows/build/osx/action.yml +++ b/.github/workflows/build/osx/action.yml @@ -193,6 +193,15 @@ runs: mkdir gsl cp -v $(brew --prefix gsl)/lib/*.dylib ./gsl + - name: Test + if: ${{ inputs.cacheOnly == 'false' }} + shell: bash + run: | + set -ex + cd build + + ctest + - name: Upload Raw Build Artifacts if: ${{ inputs.cacheOnly == 'false' }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build/windows/action.yml b/.github/workflows/build/windows/action.yml index 6d05f4ef1e..e80ee23221 100644 --- a/.github/workflows/build/windows/action.yml +++ b/.github/workflows/build/windows/action.yml @@ -172,13 +172,30 @@ runs: mkdir -p build && cd build TEMPD=$(mktemp -d) mkdir -p $TEMPD/bin - cmake ../ -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_C_COMPILER=cl -DANTLR_EXECUTABLE:string=$ANTLR_EXE -DJava_JAVA_EXECUTABLE:string=$JAVA_EXE -DCMAKE_CXX_COMPILER=cl -DMULTI_THREADING:bool=${{ inputs.threading }} -DGUI:bool=true -DCMAKE_INSTALL_PREFIX:PATH=$TEMPD + cmake ../ -G Ninja -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_C_COMPILER=cl -DANTLR_EXECUTABLE:string=$ANTLR_EXE -DJava_JAVA_EXECUTABLE:string=$JAVA_EXE -DCMAKE_CXX_COMPILER=cl -DMULTI_THREADING:bool=${{ inputs.threading }} -DGUI:bool=true -DCMAKE_INSTALL_PREFIX:PATH=$TEMPD -DBUILD_TESTS:bool=true cmake --build . --config Release cp bin/* $TEMPD/bin ninja install mkdir -p install cp -r $TEMPD/* install/ + - name: Test + if: ${{ inputs.cacheOnly == 'false' }} + shell: bash + run: | + df -mh . + Qt6_DIR="${RUNNER_TEMP}\qt\${{ inputs.qtVersion }}\msvc2019_64" + ANTLR_EXE="${RUNNER_TEMP}\antlr-${{ inputs.antlrVersion }}-complete.jar" + export PATH="${Qt6_DIR}\bin;$PATH" + INCLUDE="${RUNNER_TEMP}\freetype-latest;$INCLUDE" + LIB="${RUNNER_TEMP}\freetype-install\lib;${RUNNER_TEMP}\freetype-install\bin;$LIB" + INCLUDE="${RUNNER_TEMP}\ftgl-latest\src;$INCLUDE" + LIB="${RUNNER_TEMP}\ftgl-install\lib;$LIB" + JAVA_EXE="${JAVA_HOME_21_X64}\bin\java.exe" + cd build + cmake --build . --config Release + ctest + - name: Upload Raw Build Artifacts if: ${{ inputs.cacheOnly == 'false' }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4088cc6a9b..8191539854 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -25,14 +25,8 @@ jobs: with: checkoutRef: ${{ github.event.pull_request.head.sha }} - QC: - needs: [Checkout] - uses: "./.github/workflows/_qc.yml" - with: - nixHash: ${{ needs.Checkout.outputs.nixHash }} - BuildAndPackage: - needs: [Checkout] + needs: Checkout uses: "./.github/workflows/_build_and_package.yml" with: benchmark: false @@ -51,11 +45,3 @@ jobs: with: branch: 'refs/pull/${{ github.event.pull_request.number }}/merge' - Web: - needs: [Checkout] - uses: "./.github/workflows/_website.yml" - with: - publishType: 'none' - displayMajorVersion: ${{ needs.Checkout.outputs.currentVersionMajor }} - displayMinorVersion: ${{ needs.Checkout.outputs.currentVersionMinor }} - hugoVersion: ${{ needs.Checkout.outputs.hugoVersion }}