-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 965 Bytes
/
build.yml
File metadata and controls
47 lines (38 loc) · 965 Bytes
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
name: build
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- '**'
- '!.github/**'
- '.github/workflows/build.yml'
- '!**.md'
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: Onion.sln
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
build-config: [Distro, Release, Debug]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Setup
working-directory: ${{env.GIHUB_WORKSPACE}}
run: |
cd scripts
./setup.bat
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ matrix.build-config }}