forked from rossknudsen/Kavod.Vba.Compression
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (49 loc) · 1.28 KB
/
build.yml
File metadata and controls
62 lines (49 loc) · 1.28 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: build
on:
push:
pull_request:
branches:
- main
permissions:
contents: read
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
ContinuousIntegrationBuild: true
RestoreLockedMode: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-24.04, windows-2022 ]
configuration: [ 'Debug', 'Release' ]
runs-on: ${{ matrix.os }}
env:
Configuration: ${{ matrix.configuration }}
VersionSuffix: preview${{ github.run_id }}
steps:
- name: checkout
uses: actions/checkout@v5
- name: setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8
10
- name: restore
run: dotnet restore
- name: build
run: dotnet build --no-restore
- name: test
run: dotnet test --no-build --no-restore
env:
TestNetCoreOnly: ${{ contains(matrix.os, 'ubuntu') }}
- name: pack
run: dotnet pack --no-build --no-restore -c ${{ matrix.configuration }} -o dist
- name: publish artifact
uses: actions/upload-artifact@v5
with:
name: VbaCompression_${{ env.VersionSuffix }}_${{ matrix.configuration }}_${{ matrix.os }}
path: '${{ github.workspace }}/dist'