-
Notifications
You must be signed in to change notification settings - Fork 2.1k
34 lines (32 loc) · 1.49 KB
/
amd64_windows_cmake_python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: amd64 Windows CMake Python
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install python3
run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas
- name: Install SWIG 4.1.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip");
Expand-Archive .\swigwin-4.1.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check swig
run: swig -version
- name: Add Python binaries to path
run: echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/Python310/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v -- /maxcpucount
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -v -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -v -- /maxcpucount