-
-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (42 loc) · 1.32 KB
/
build.yml
File metadata and controls
44 lines (42 loc) · 1.32 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
43
44
name: Build
on:
push:
branches: [ "dev" ]
paths-ignore:
- '**/*.md'
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: pwsh
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: true
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- run: dotnet restore --locked-mode
- name: Set OS_ARG environment variable
run: |
if ("${{ runner.os }}" -eq "Windows") {
echo "OS_ARG=win10" | Out-File -FilePath $env:GITHUB_ENV -Append
} elseif ("${{ runner.os }}" -eq "Linux") {
echo "OS_ARG=linux" | Out-File -FilePath $env:GITHUB_ENV -Append
} elseif ("${{ runner.os }}" -eq "macOS") {
echo "OS_ARG=osx" | Out-File -FilePath $env:GITHUB_ENV -Append
}
- run: ./createpublishedzip.ps1 -os ${{ env.OS_ARG }} -selfcontained true
- uses: actions/upload-artifact@v7
with:
name: SFP_UI-${{ env.OS_ARG }}-x64-SelfContained-${{ github.sha }}
path: Release/SFP_UI-*