Run clang-tidy. #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TermGL | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
if: matrix.os == 'windows-latest' | |
- name: Install Make on MacOS | |
if: matrix.os == 'macos-latest' | |
run: brew install make | |
- name: Install Make on Windows | |
if: matrix.os == 'windows-latest' | |
run: choco install make | |
- name: Compile | |
run: | | |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then | |
make shared CFLAGS="-DTERMGL3D -DTERMGLUTIL" | |
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then | |
make shared CFLAGS="-DTERMGL3D" | |
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then | |
make termgl.obj CFLAGS="-DTERMGL3D -DTERMGLUTIL" | |
fi | |
shell: bash |