feature: add cl.exe to build workflow
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
This commit is contained in:
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
@@ -9,6 +9,9 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
compiler: [gcc, clang, zig cc]
|
compiler: [gcc, clang, zig cc]
|
||||||
|
include:
|
||||||
|
- os: windows-latest
|
||||||
|
compiler: cl.exe
|
||||||
|
|
||||||
name: compile
|
name: compile
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -20,8 +23,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: '12.2.0'
|
version: '12.2.0'
|
||||||
|
|
||||||
|
- if: matrix.compiler == 'cl.exe' && matrix.os == 'windows-latest'
|
||||||
|
uses: seanmiddleditch/gha-setup-vsdevenv@master
|
||||||
|
|
||||||
- if: matrix.compiler == 'zig cc'
|
- if: matrix.compiler == 'zig cc'
|
||||||
uses: goto-bus-stop/setup-zig@v2
|
uses: goto-bus-stop/setup-zig@v2
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.c -Werror
|
run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.c
|
||||||
|
|||||||
Reference in New Issue
Block a user