-
Notifications
You must be signed in to change notification settings - Fork 69
49 lines (42 loc) · 1.16 KB
/
pull-request.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
name: xUnit.net Analyzers PR Build
on:
- pull_request
- workflow_dispatch
jobs:
build:
name: "Build"
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-22.04, macOS-12]
steps:
- name: Clone source
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Replace global.json
run: cp .github/workflows/.global.json global.json
shell: bash
- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Get .NET information
run: dotnet --info
- name: Get Mono information
run: mono --version
if: ${{ matrix.os != 'windows-2022' }}
- name: "Build target: BuildAll"
run: dotnet run --project tools/builder --no-launch-profile -- BuildAll
- name: "Upload artifact: test-${{ matrix.os }}"
uses: actions/upload-artifact@v4
with:
name: test-${{ matrix.os }}
path: artifacts/test
compression-level: 9
if: always()