Files
Pyarmor-Static-Unpack-1shot/.github/workflows/msvc-ci.yml
Michael Hansen 462fc46424 Add JOBS parameter to GH workflows (currently default, but not guaranteed)
... and fix missing newline at EOF
2024-06-23 11:46:17 -07:00

36 lines
905 B
YAML

name: MSVC-CI
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Configure and Build
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A Win32 ..
cmake --build . --config Debug
cmake --build . --config Release
# This should probably be fixed to work from MSVC without needing to
# use a bash shell and the GNU userland tools... But for now, the
# GH Actions environment provides what we need.
- name: Test
run: |
cd build\Debug
bash.exe ..\..\tests\all_tests.sh
env:
PYTHON_EXE: python.exe
JOBS: 4
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pycdc-release
path: build\Release\*.exe