-
-
Notifications
You must be signed in to change notification settings - Fork 13
60 lines (51 loc) · 1.48 KB
/
continuous_build_check.yaml
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
55
56
57
58
59
60
name: Continuous Build and Test
on:
push:
branches:
- 'develop'
paths-ignore:
# don't need to re-run the build for now if only markdown changes
- '**/*.md'
- 'docs/**'
pull_request:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
defaults:
run:
shell: bash
jobs:
build:
strategy:
fail-fast: false
matrix:
godotVersion: ["4.1.4", "4.2.2", "4.3.0"]
targetFramework: ["net6.0", "net7.0"]
name: Build
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v3
with:
clean: false # we clean what we want to clean ourselves above, and try to keep some cache
submodules: recursive
- name: Set Target Framework ${{ matrix.targetFramework }}
run: |
sed -i 's|<TargetFramework>.*<|<TargetFramework>'${{ matrix.targetFramework }}'<|g' YarnSpinner-Godot.csproj
- uses: chickensoft-games/setup-godot@v1
name: 🤖 Setup Godot
with:
version: ${{ matrix.godotVersion}}
# Use .NET-enabled version of Godot (the default is also true).
use-dotnet: true
- name: 🔬 Verify Setup
run: |
dotnet --version
godot --version
- name: Build solution
id: buildSolution
run: |
godot --headless --path . --verbose -e --build-solutions --quit
dotnet build
timeout-minutes: 3