-
-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (39 loc) · 1.06 KB
/
dotnet.yml
File metadata and controls
42 lines (39 loc) · 1.06 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
30
31
32
33
34
35
36
37
38
39
40
41
42
name: .NET Publish Examples
permissions:
contents: read
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
Build:
env:
dotnet-version: "8.0"
strategy:
matrix:
include:
- os: windows-latest
runtime: win-x64
- os: ubuntu-latest
runtime: linux-x64
- os: macos-latest
runtime: osx-arm64
- os: macos-13
runtime: osx-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}.x
- name: Restore dependencies
run: dotnet restore
- name: Publish Examples
run: dotnet publish --sc -r ${{ matrix.runtime }} ./ShapeEngine.sln
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ matrix.runtime }}-Examples
path: ./Examples/bin/Release/net${{ env.dotnet-version }}/${{ matrix.runtime }}/publish