Update main.yml

This commit is contained in:
blueloveTH 2023-03-04 19:54:38 +08:00
parent ac4b0a2740
commit f95ca7f634

View File

@ -6,12 +6,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1 - uses: ilammy/msvc-dev-cmd@v1
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: 15
platform: x64
- name: Compiling - name: Compiling
shell: bash shell: bash
run: | run: |
CL -std:c++17 -GR- -EHsc -O2 -Fe:pocketpy src/main.cpp clang-cl.exe -std:c++17 -GR- -EHsc -O2 -Fe:pocketpy src/main.cpp
mv src/pocketpy.h src/pocketpy.cpp echo '#include "pocketpy.h"' > src/tmp.cpp
CL -std:c++17 -GR- -EHsc -O2 -LD -Fe:pocketpy src/pocketpy.cpp clang-cl.exe -std:c++17 -GR- -EHsc -O2 -LD -Fe:pocketpy src/tmp.cpp
python3 scripts/run_tests.py python3 scripts/run_tests.py
python3 scripts/run_tests.py benchmark python3 scripts/run_tests.py benchmark
mkdir -p output/windows/x86_64 mkdir -p output/windows/x86_64