licenses and cleanup #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile and test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
#runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Jimver/cuda-toolkit@v0.2.11 | |
id: cuda-toolkit | |
with: | |
cuda: '12.1.0' | |
method: 'network' | |
#Test GCC | |
- name: Test gcc | |
run: g++ --version && whereis g++ | |
#OpenFOAM-dev (Foundation set-up) | |
- name: Set up OpenFOAM-dev | |
run: | | |
sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc" | |
sudo add-apt-repository http://dl.openfoam.org/ubuntu | |
sudo add-apt-repository "http://dl.openfoam.org/ubuntu dev" | |
sudo apt-get update | |
sudo apt-get -y install openfoam-dev | |
#gpuFoam compilation | |
- name: Compile gpuFoam | |
run: source /opt/openfoam-dev/etc/bashrc && ./Allwmake | |
#unittests | |
#- name: Run gpuChemistry unittests | |
# run: testGpuChemistry | |