-
Notifications
You must be signed in to change notification settings - Fork 54
45 lines (37 loc) · 1.02 KB
/
git-builds.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
name: Git Builds
on:
push:
branches: [ main ]
paths:
- ".github/workflows/clean_environment_tests.yaml"
- "./src/**"
- "./tests/**"
- "**.props"
- "**.targets"
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Info
run: dotnet --info
- name: Build (Linux)
if: runner.os == 'Linux'
shell: sh
run: ./scripts/build-linux-x64.sh
- name: Build (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: scripts\build-win-x64.ps1
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
# example: "NexusMods.App-Windows-279a5092173a6f687f89dc3c6a2b7c5898e289f6"
name: NexusMods.App-${{ runner.os }}-${{ github.sha }}
path: ${{ github.workspace }}/bin
if-no-files-found: error
retention-days: 7