-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.09 KB
/
windows.yml
File metadata and controls
46 lines (38 loc) · 1.09 KB
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
name: windows
on:
push:
branches:
- master
jobs:
build:
if: ${{ !contains(github.event.head_commit.message, '[no-build]') }}
name: ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.config }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: cmd
strategy:
matrix:
os: [windows-latest]
arch: [x64, x86]
config: [debug, release]
steps:
- name: Setup python environment
run: |
pip install PyYAML
- name: Check out code
uses: actions/checkout@v3
- name: Fetch dependencies
run: |
fetch_deps.bat
- name: Fetch gn and ninja
run: |
python build\\fetch_binaries.py
COPY /Y build\\bin\\* %WINDIR%\
- name: Compile
run: |
gn gen out/${{ matrix.config }}_${{ matrix.arch }} --args="target_cpu=\"${{ matrix.arch }}\" is_debug=${{ matrix.config == 'debug' }}"
ninja -C out/${{ matrix.config }}_${{ matrix.arch }}
- name: Test
run: |
python out\\${{ matrix.config }}_${{ matrix.arch }}\\test.py