forked from verybadcat/CSharpMath
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 1.29 KB
/
Test.yml
File metadata and controls
29 lines (28 loc) · 1.29 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
name: Build and Test
on: [push, pull_request]
jobs:
Unix:
if: (github.event_name == 'pull_request') == github.event.pull_request.head.repo.fork
strategy:
fail-fast: false # Don't cancel other os builds if one fails
matrix:
# Check included Xcode versions for GitHub Actions: https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os: [ubuntu-latest, macos-26] # windows-latest is tested in Nightly.yml. It also needs special handling with regards to CSharpMath.Uno.Example so it's omitted here.
runs-on: ${{ matrix.os }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
if: startsWith(matrix.os, 'macos')
with:
# Check required Xcode version for latest "dotnet workload restore": https://github.com/dotnet/macios/releases
xcode-version: '26.2' # If this is to be changed, also check macos-version in matrix.os above
- uses: actions/setup-dotnet@main
with:
dotnet-version: '10.x'
workloads: ${{ case(startsWith(matrix.os, 'ubuntu'), 'maui-android, wasm-tools', 'maui, wasm-tools') }}
- uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Build Everything
run: dotnet build
- name: Run Tests
run: dotnet test --no-build --solution CSharpMath.slnx