This repository was archived by the owner on Feb 12, 2025. It is now read-only.
Fix some links #250
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build-linux-gcc: | |
| runs-on: ubuntu-18.04 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: build | |
| run: | | |
| $CC nobuild.c -o nobuild | |
| ./nobuild | |
| env: | |
| CC: gcc | |
| CXX: g++ | |
| build-linux-clang: | |
| runs-on: ubuntu-18.04 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: build | |
| run: | | |
| $CC nobuild.c -o nobuild | |
| ./nobuild | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| build-macos: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: build | |
| run: | | |
| $CC nobuild.c -o nobuild | |
| ./nobuild | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| build-windows-msvc: | |
| runs-on: windows-2019 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| # this runs vcvarsall for us, so we get the MSVC toolchain in PATH. | |
| - uses: seanmiddleditch/gha-setup-vsdevenv@master | |
| - name: build | |
| shell: cmd | |
| # this replaces default PowerShell, which can't fail the build | |
| run: | | |
| cl.exe nobuild.c | |
| .\nobuild.exe test |