-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.59 KB
/
CI.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
workflow_dispatch:
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
# cache: 'pip'
- uses: actions/cache@v4
id: cache-venv
with:
path: venv
key: setup-venv-${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
setup-venv-${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-
- name: Setup venv
run: |
python -m venv venv
venv/Scripts/python.exe -m pip install --upgrade pip setuptools wheel
venv/Scripts/python.exe -m pip install -r requirements.txt
if: steps.cache-venv.outputs.cache-hit != 'true'
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: win32
- name: "create build dir"
shell: cmd
run: mkdir build
- name: "configure cmake"
shell: cmd
run: cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DUSE_CONFIGURE_DATE=ON -DCMAKE_INSTALL_PREFIX=../install ..
- name: "cmake build"
shell: cmd
run: cd build && cmake --build .
- name: "cmake install"
shell: cmd
run: cd build && cmake --install .
- uses: actions/upload-artifact@v4
with:
name: flame
path: install/
if-no-files-found: error