ci.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: CI
  2. on: [push, pull_request]
  3. jobs:
  4. build-linux-gcc:
  5. runs-on: ubuntu-18.04
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: build
  9. run: |
  10. $CC nobuild.c -o nobuild
  11. ./nobuild
  12. env:
  13. CC: gcc
  14. CXX: g++
  15. build-linux-clang:
  16. runs-on: ubuntu-18.04
  17. steps:
  18. - uses: actions/checkout@v1
  19. - name: build
  20. run: |
  21. $CC nobuild.c -o nobuild
  22. ./nobuild
  23. env:
  24. CC: clang
  25. CXX: clang++
  26. build-macos:
  27. runs-on: macOS-latest
  28. steps:
  29. - uses: actions/checkout@v1
  30. - name: build
  31. run: |
  32. $CC nobuild.c -o nobuild
  33. ./nobuild
  34. env:
  35. CC: clang
  36. CXX: clang++
  37. build-windows-msvc:
  38. runs-on: windows-2019
  39. steps:
  40. - uses: actions/checkout@v1
  41. # this runs vcvarsall for us, so we get the MSVC toolchain in PATH.
  42. - uses: seanmiddleditch/gha-setup-vsdevenv@master
  43. - name: build
  44. shell: cmd
  45. # this replaces default PowerShell, which can't fail the build
  46. run: |
  47. cl.exe nobuild.c
  48. .\nobuild.exe test