-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 996 Bytes
/
dotnetPublish.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
name: Dotnet Publish
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build for linux 64
run: dotnet publish SusLang -c Release -r linux-x64 -p:PublishSingleFile=true -p:PublishAot=false --self-contained true
- name: Build for windows (x86)
run: dotnet publish SusLang -c Release -r win-x86 -p:PublishSingleFile=true -p:PublishAot=false --self-contained true
- name: Upload linux build
uses: actions/upload-artifact@v3
with:
name: Linux-x64
path: SusLang/bin/Release/net7.0/linux-x64/publish
- name: Upload windows build
uses: actions/upload-artifact@v3
with:
name: Win-x86
path: SusLang/bin/Release/net7.0/win-x86/publish