blueloveTH d1f12ee90c up
Update 2.py

Update 2.py

up
2023-02-01 00:49:10 +08:00

45 lines
1.1 KiB
YAML

name: build
on: [push, pull_request]
jobs:
build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Compiling
shell: bash
run: |
CL -std:c++17 -GR- -EHsc -O2 -Fe:pocketpy src/main.cpp
python3 scripts/run_tests.py
./pocketpy tests/1.py
./pocketpy tests/2.py
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Compiling
run: |
bash build_cpp.sh
python3 scripts/run_tests.py
./pocketpy tests/1.py
./pocketpy tests/2.py
build_web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.25
actions-cache-folder: 'emsdk-cache'
- name: Verify emsdk
run: emcc -v
- name: Compiling
run: |
bash build_wasm.sh
- uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: web
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}