From ce7c8b5668b949dd4cc846f3c5c8292c4d814674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 16:26:26 -0700 Subject: [PATCH 1/8] Add initial GitHub CI --- .github/workflows/main.yml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2340b244..2a7627fac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,37 @@ name: CI -on: [push] +on: [push, pull_request] jobs: - build: - + Linux: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: cmake + run: cmake . + - name: make + run: make + - name: test + run: ctest --output-on-failure + + macOS: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - name: cmake + run: cmake . + - name: make + run: make + - name: test + run: ctest --output-on-failure + Windows: + runs-on: windows-latest steps: - uses: actions/checkout@v1 - - name: Run a one-line script - run: echo Hello, world! - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + - name: cmake + run: cmake -G "Visual Studio 16 2019" . + - name: make + run: cmake --build . + - name: test + run: ctest --output-on-failure From e780bc6835b16d6333664c0be2b4d700c8ffbd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 17:39:41 -0700 Subject: [PATCH 2/8] Install GFortran on Linux --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a7627fac..090fb0404 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - name: Install GFortran + run: sudo apt-get install gfortran - name: cmake run: cmake . - name: make From 0308008d8c90b85579cbbcf9558e8ab771ff03ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 20:30:20 -0700 Subject: [PATCH 3/8] Install GFortran on macOS --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 090fb0404..48f121529 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v1 + - name: Install GFortran + run: conda install -c conda-forge gfortran_osx-64 - name: cmake run: cmake . - name: make From 6265d3d0045a3a91cae43c21ae157ea980989276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 21:12:24 -0700 Subject: [PATCH 4/8] Install flang on Windows --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48f121529..0bc211c98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,8 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v1 + - name: Install GFortran + run: conda install -c conda-forge flang - name: cmake run: cmake -G "Visual Studio 16 2019" . - name: make From 9c9ed2ede9c012d03ee88320084571d53e4e629f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 21:19:41 -0700 Subject: [PATCH 5/8] Put Conda into PATH --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0bc211c98..9600b0e12 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install GFortran + run: export PATH="/Users/runner/miniconda3/bin:$PATH" run: conda install -c conda-forge gfortran_osx-64 - name: cmake run: cmake . From ea7f7cd4b8ae085d63ff80e99b1fd71ee139fe88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 21:20:45 -0700 Subject: [PATCH 6/8] Use correct formatting --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9600b0e12..a16dc6ca5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,9 @@ jobs: steps: - uses: actions/checkout@v1 - name: Install GFortran - run: export PATH="/Users/runner/miniconda3/bin:$PATH" - run: conda install -c conda-forge gfortran_osx-64 + run: | + export PATH="/Users/runner/miniconda3/bin:$PATH" + conda install -c conda-forge gfortran_osx-64 - name: cmake run: cmake . - name: make From a6c057f8fb17ca4985e240fac08a4a630db6c8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 21:34:27 -0700 Subject: [PATCH 7/8] Add Conda to PATH properly --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a16dc6ca5..27012dd54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,10 +20,10 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v1 + - name: Add conda to $PATH + run: echo ::add-path::$CONDA/condabin - name: Install GFortran - run: | - export PATH="/Users/runner/miniconda3/bin:$PATH" - conda install -c conda-forge gfortran_osx-64 + run: sudo conda install -c conda-forge gfortran_osx-64 - name: cmake run: cmake . - name: make From 7940bce22bed80da1cc85ae61b53e148fcf56e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Sat, 21 Dec 2019 21:37:31 -0700 Subject: [PATCH 8/8] See where it is installed --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27012dd54..782827fad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,9 @@ jobs: - name: Add conda to $PATH run: echo ::add-path::$CONDA/condabin - name: Install GFortran - run: sudo conda install -c conda-forge gfortran_osx-64 + run: | + sudo conda install -c conda-forge gfortran_osx-64 + which gfortran - name: cmake run: cmake . - name: make