From fe529a709df500e7a5001a9873948d93254e0d33 Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Thu, 25 Jan 2024 07:48:23 +0100 Subject: [PATCH] Extend CI to more platforms (#7) Extend CI to more platforms --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b663f01..0afd08b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,28 +23,49 @@ on: jobs: test: if: "!contains(github.event.head_commit.message, 'skip ci')" - name: ${{ matrix.os }} - ${{ github.event_name }} + name: ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: - ubuntu-latest + - macos-latest + compiler: + - gfortran-11 + - gfortran-13 + shell: + - bash + include: + - os: windows-latest + compiler: gfortran + shell: 'msys2 {0}' + defaults: + run: + shell: ${{ matrix.shell }} steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: msys2/setup-msys2@v2 + if: ${{ matrix.os == 'windows-latest' }} + with: + update: true + install: git base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake + - name: Show compiler version information + run: | + ${{ matrix.compiler }} --version - name: Configure run: | mkdir build && cd build - cmake .. -DCMAKE_INSTALL_PREFIX=../install + FC=${{ matrix.compiler }} cmake .. -DCMAKE_INSTALL_PREFIX=../install - name: Build run: | cd build - make -j 2 + cmake --build . - name: Install run: | cd build - make install + cmake --install . - name: Run test run: | install/bin/smesh_test