Skip to content

Commit

Permalink
Merge branch 'master' into update_asmjit
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene committed Aug 20, 2024
2 parents 3d282d9 + 302a951 commit ff3a875
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on: [push, pull_request]
jobs:
build-linux:
strategy:
fail-fast: false
# max-parallel: 1 # Sets the limit of jobs to run concurrently
fail-fast: true
matrix:
os: [ubuntu-20.04]
compiler: [g++-7, g++-8, g++-9, g++-10, clang++-8, clang++-9, clang++-10]
Expand All @@ -17,7 +18,12 @@ jobs:
env:
CUDA_ROOT: '/usr/local/cuda'

#kudos to https://github.com/easimon/maximize-build-space/blob/master/action.yml
steps:
- name: Try to clean up some things
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- name: Install g++-7 (if needed)
if: matrix.compiler == 'g++-7'
run: |
Expand Down Expand Up @@ -180,6 +186,41 @@ jobs:
with:
name: FIRESTARTER_ONEAPI_${{ matrix.ONEAPI }}-linux
path: build/src/FIRESTARTER_ONEAPI

- name: UnInstall g++-7 (if needed)
if: matrix.compiler == 'g++-7'
run: |
sudo apt remove g++-7
sudo apt autoremove
- name: UnInstall g++-8 (if needed)
if: matrix.compiler == 'g++-8'
run: |
sudo apt remove g++-8
sudo apt autoremove
- name: UnInstall clang++-8 (if needed)
if: matrix.compiler == 'clang++-8'
run: |
sudo apt remove clang-8
sudo apt autoremove
- name: UnInstall clang++-9 (if needed)
if: matrix.compiler == 'clang++-9'
run: |
sudo apt remove clang-9
sudo apt autoremove
- name: UnInstall clang++-10 (if needed)
if: matrix.compiler == 'clang++-10'
run: |
sudo apt remove clang-10
sudo apt autoremove
- name: UnInstall CUDA runtime (if needed)
if: matrix.CUDA != '0' && matrix.ONEAPI == '0'
run: |
sudo rm -rf ${CUDA_ROOT}
- name: UnInstall OneAPI Base-Toolkit (if needed)
if: matrix.ONEAPI != '0' && matrix.CUDA == '0'
run: |
sudo apt remove intel-basekit-${{ matrix.ONEAPI }}
sudo apt autoremove
build-windows:
strategy:
fail-fast: false
Expand Down

0 comments on commit ff3a875

Please sign in to comment.