Update github workflow to validate build
@@ -13,8 +13,8 @@ jobs:
strategy:
matrix:
- os: [ubuntu-latest, windows-2019]
- node-version: [14.x, 16.x]
+ os: [ubuntu-latest, windows-2019, macos-latest]
+ node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
@@ -37,3 +37,21 @@ jobs:
exit 1
fi
- run: npm test
+
+ compile:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ compiler: [gcc, clang++]
+
+ name: compile
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - if: matrix.os == 'windows-latest' && matrix.compiler == 'gcc'
+ uses: egor-tensin/setup-mingw@v2
+
+ - name: build
+ run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.cc -Werror
