-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (40 loc) · 1.01 KB
/
dotnet.yml
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
name: Build with .NET
on: [push]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
os:
- win-x64
- osx-x64
- linux-x64
steps:
- uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
- name: Build Kamek for ${{ matrix.os }}
shell: cmd
run: |
cd ${{ github.workspace }}
mkdir build
cd Kamek
dotnet restore
dotnet build -p:Configuration=Release
pushd %CD%
cd bin\Release\net6.0
mkdir publish
set out=%CD%\publish
set rid=${{ matrix.os }}
popd
dotnet publish -c Release -r %rid% --self-contained true -p:PublishSingleFile=true -o %out%\%rid%
pushd %CD%
cd %out%\%rid%
rm *.pdb
cp Kamek* ${{ github.workspace }}\build
- uses: actions/[email protected]
with:
name: ${{ matrix.os }}
path: ${{ github.workspace }}/build