-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.25 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
name: FastPack CI
on: [push]
jobs:
build:
strategy:
matrix:
os: [win-x64, linux-x64, osx-x64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Build ${{ matrix.os }}
working-directory: ./src
run: dotnet publish -r ${{ matrix.os }} -c Release -o ../output/${{ matrix.os }} --verbosity q --self-contained True -p:PublishTrimmed=True -p:IncludeNativeLibrariesForSelfExtract=True -p:EnableCompressionInSingleFile=True ./FastPack/FastPack.csproj
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: FastPack executable
path: |
output/**/*
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install dependencies
working-directory: ./src
run: dotnet restore
- name: Test
working-directory: ./src
run: dotnet test --no-restore --verbosity normal