main.yml 562 B

1234567891011121314151617181920212223
  1. name: build
  2. on: [push, pull_request]
  3. jobs:
  4. build_win:
  5. runs-on: windows-latest
  6. steps:
  7. - uses: actions/checkout@v3
  8. - uses: ilammy/msvc-dev-cmd@v1
  9. - name: Compiling
  10. shell: bash
  11. run: |
  12. CL -std:c++17 -GR- -EHsc -O2 -Fe:pocketpy src/main.cpp
  13. python3 scripts/run_tests.py
  14. ./pocketpy tests/1.py
  15. build_test_linux:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v3
  19. - name: Compiling
  20. run: |
  21. bash build_cpp.sh
  22. python3 scripts/run_tests.py
  23. ./pocketpy tests/1.py