Skip to content

Fix clang-cl / g++ compilation #2

Fix clang-cl / g++ compilation

Fix clang-cl / g++ compilation #2

name: run gsw_check (alternative compilers)
on:
pull_request:
push:
#branches: [master]
workflow_dispatch:
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:

Check failure on line 13 in .github/workflows/test-alternative-compilers.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-alternative-compilers.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- make: make
include:
- name: windows / clang-cl (c++)
os: windows-latest
compiler: "clang-cl /TP"
make: nmake
- name: linux / g++ (c++)
os: ubuntu-latest
compiler: "g++ -x c++"
- name: linux / clang (c)
os: ubuntu-latest
compiler: "clang"
- name: linux / clang (c++)
os: ubuntu-latest
compiler: "clang -x c++"
- name: macos / g++ (c++)
os: macos-latest
compiler: "g++ -x c++"
- name: macos / clang (c)
os: macos-latest
compiler: "clang"
- name: macos / clang (c++)
os: macos-latest
compiler: "clang -x c++"
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Tests
shell: bash
run: |
COMPILER=${{matrix.compiler}} ${{matrix.make}} -f Makefile && ./gsw_check