-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (41 loc) · 1.18 KB
/
ci.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
on: [push, pull_request]
name: CI
jobs:
build:
name: Build (${{ matrix.osname }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
osname: "osx-x64"
- os: ubuntu-latest
osname: "linux-x64"
- os: windows-latest
osname: "win-x64"
env:
ZIP_NAME: ${{ github.event.repository.name }}-ci-${{ github.sha }}-${{ matrix.osname }}
OUTPUT_PATH: ./build
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.nuget/packages
Src/**/bin/*.*
Src/**/obj/*.*
key: ${{ matrix.osname }}-build-${{ hashFiles('**/*.csproj', './*.sln') }}
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Publish applications
shell: bash
run: |
chmod +x ./build.sh
./build.sh -r ${{ matrix.osname }} -o ${{ env.OUTPUT_PATH }}
- uses: actions/upload-artifact@v3
with:
name: ${{ env.ZIP_NAME }}
path: ${{ env.OUTPUT_PATH }}