This repository has been archived by the owner on May 14, 2024. It is now read-only.
windows action #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows action | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: checkout the source | |
uses: actions/checkout@v4 | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: install cmake | |
run: | | |
curl -L https://cmake.org/files/v3.28/cmake-3.28.0-rc4-windows-x86_64.zip -o cmake.zip | |
Expand-Archive -LiteralPath cmake.zip -DestinationPath . -Force | |
- name: install ninja | |
run: | | |
curl -L https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip -o ninja.zip | |
Expand-Archive -LiteralPath ninja.zip -DestinationPath . -Force | |
- name: build | |
run: | | |
cd native | |
..\cmake-3.28.0-rc4-windows-x86_64\bin\cmake.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=..\ninja.exe -G Ninja -S . -B build-release | |
..\cmake-3.28.0-rc4-windows-x86_64\bin\cmake.exe --build build-release --target all | |
python main.py | |
Compress-Archive -Path target\* -DestinationPath build-windows.zip | |
- name: upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifact | |
path: | | |
native/build-windows.zip |