diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 7b68c536..f8e0e068 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -172,17 +172,17 @@ jobs: if: matrix.CUDA == '0' && matrix.ONEAPI == '0' run: ./build/src/FIRESTARTER -t 1 - uses: actions/upload-artifact@v4 - if: matrix.compiler == 'clang++-10' && matrix.CUDA == '0' && matrix.ONEAPI == '0' + if: matrix.compiler == 'clang++-10' && matrix.CUDA == '0' && matrix.ONEAPI == '0' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER-linux path: build/src/FIRESTARTER - uses: actions/upload-artifact@v4 - if: matrix.compiler == 'clang++-10' && matrix.CUDA != '0' && matrix.ONEAPI == '0' + if: matrix.compiler == 'clang++-10' && matrix.CUDA != '0' && matrix.ONEAPI == '0' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER_CUDA_${{ matrix.CUDA }}-linux path: build/src/FIRESTARTER_CUDA - uses: actions/upload-artifact@v4 - if: matrix.compiler == 'clang++-10' && matrix.CUDA == '0' && matrix.ONEAPI != '0' + if: matrix.compiler == 'clang++-10' && matrix.CUDA == '0' && matrix.ONEAPI != '0' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER_ONEAPI_${{ matrix.ONEAPI }}-linux path: build/src/FIRESTARTER_ONEAPI @@ -299,14 +299,14 @@ jobs: shell: pwsh run: .\build\src\FIRESTARTER.exe -t 1 - uses: actions/upload-artifact@v4 - if: matrix.cfg.CUDA == '0' && matrix.cfg.MSVC == true + if: matrix.cfg.CUDA == '0' && matrix.cfg.MSVC == true && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER-windows path: | build\src\FIRESTARTER.exe build\src\libhwloc-15.dll - uses: actions/upload-artifact@v4 - if: matrix.cfg.CUDA != '0' + if: matrix.cfg.CUDA != '0' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER_CUDA_${{ matrix.cfg.CUDA }}-windows path: | @@ -347,18 +347,19 @@ jobs: cd build ./src/FIRESTARTER -t 1 - uses: actions/upload-artifact@v4 - if: matrix.os == 'macos-12' + if: matrix.os == 'macos-12' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER-macOS_12 path: build/src/FIRESTARTER - uses: actions/upload-artifact@v4 - if: matrix.os == 'macos-13' + if: matrix.os == 'macos-13' && ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' ) with: name: FIRESTARTER-macOS_13 path: build/src/FIRESTARTER create-download: name: Create download for Website runs-on: ubuntu-latest + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || github.event_name == 'pull_request' needs: [build-linux, build-macos, build-windows] steps: - uses: actions/checkout@v4