build-macos-latest.yml 519 B

123456789101112131415161718192021222324252627
  1. name: build-macos-latest
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: macos-latest
  6. strategy:
  7. matrix:
  8. compiler: [gcc, clang]
  9. include:
  10. - compiler: gcc
  11. cc: gcc
  12. cxx: g++
  13. - compiler: clang
  14. cc: clang
  15. cxx: clang++
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. submodules: 'recursive'
  20. - name: Build
  21. working-directory: ${{github.workspace}}/src
  22. shell: bash
  23. run: cc motp.c -lm -o motp