Skip to content

Commit 76bd6e4

Browse files
authored
feat: Add GitHub CI workflow (#2)
1 parent 2b7927c commit 76bd6e4

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build (Windows)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
build-type:
7+
description: Build in Release or Debug?
8+
required: true
9+
default: Debug
10+
type: choice
11+
options:
12+
- Debug
13+
- Release
14+
workflow_call:
15+
inputs:
16+
build-type:
17+
required: true
18+
default: Debug
19+
type: string
20+
21+
jobs:
22+
#
23+
# Build Stride for Windows
24+
#
25+
Windows:
26+
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
27+
runs-on: windows-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 1
32+
- uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '8.0.x'
35+
- uses: microsoft/setup-msbuild@v2
36+
- name: Build Stride
37+
run: msbuild build\Stride.build -t:BuildWindows -m -nr:false -p:StrideSkipUnitTests=true -p:StrideSkipAutoPack=true -p:StrideEnableCodeAnalysis=true

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- xplat-editor
7+
pull_request:
8+
branches:
9+
- xplat-editor
10+
types: [opened, synchronize, reopened, ready_for_review]
11+
workflow_dispatch:
12+
13+
jobs:
14+
Setup:
15+
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: exit 0
19+
20+
#
21+
# Build Stride for Windows
22+
#
23+
Windows-Debug:
24+
needs: Setup
25+
uses: ./.github/workflows/build-windows.yml
26+
secrets: inherit
27+
with:
28+
build-type: Debug

0 commit comments

Comments
 (0)