diff --git a/.github/workflows/on_PR_meson.yaml b/.github/workflows/on_PR_meson.yaml new file mode 100644 index 00000000..a878af76 --- /dev/null +++ b/.github/workflows/on_PR_meson.yaml @@ -0,0 +1,63 @@ +name: On PRs - meson + +on: pull_request + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + Ubuntu: + runs-on: ubuntu-latest + name: Linux-${{matrix.deps}} + strategy: + matrix: + deps: ['forcefallback', 'default'] + steps: + - uses: actions/checkout@v3 + + - name: Install packages + run: | + python3 -m pip install meson ninja + + - name: Sanity Checks + run: | + meson setup "${{github.workspace}}/build" --wrap-mode=${{matrix.deps}} + meson compile -C "${{github.workspace}}/build" + + VisualStudio: + runs-on: windows-latest + name: MSVC-${{matrix.deps}} + strategy: + matrix: + deps: ['forcefallback', 'default'] + steps: + - uses: actions/checkout@v3 + + - name: Install packages + run: | + python -m pip install meson ninja + + - uses: ilammy/msvc-dev-cmd@v1 + - name: Sanity Checks + run: | + meson setup "${{github.workspace}}/build" --wrap-mode=${{matrix.deps}} + meson compile -C "${{github.workspace}}/build" + + MacOS: + runs-on: macos-latest + name: macOS-${{matrix.deps}} + strategy: + matrix: + deps: ['forcefallback', 'default'] + steps: + - uses: actions/checkout@v3 + + - name: Install packages + run: | + python3 -m pip install meson ninja + + - name: Compile + run: | + meson setup "${{github.workspace}}/build" --wrap-mode=${{matrix.deps}} + meson compile -C "${{github.workspace}}/build"