File scoped namespaces (release 0.2.12) (#67) #279
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |