Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

windows action

windows action #9

Workflow file for this run

name: windows action
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- name: checkout the source
uses: actions/checkout@v4
with:
path: jar-analyzer
- 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