Skip to content

Commit 112a8a6

Browse files
committed
Build each branch in Debug and Release configurations
1 parent e2a889d commit 112a8a6

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: build
22

33
on:
44
push:
5-
branches: [ "main", "build" ]
65
pull_request:
7-
branches: [ "main" ]
6+
branches:
7+
- main
88

99
permissions:
1010
contents: read
@@ -15,17 +15,23 @@ env:
1515
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
1616
ContinuousIntegrationBuild: true
1717
RestoreLockedMode: true
18-
Configuration: Release
19-
VersionSuffix: preview${{ github.run_id }}
2018

2119
jobs:
2220
build:
21+
strategy:
22+
matrix:
23+
configuration: [ 'Debug', 'Release' ]
2324

2425
runs-on: ubuntu-22.04
2526

27+
env:
28+
Configuration: ${{ matrix.configuration }}
29+
VersionSuffix: preview${{ github.run_id }}
30+
2631
steps:
2732
- name: checkout
2833
uses: actions/checkout@v4
34+
2935
- name: setup dotnet
3036
uses: actions/setup-dotnet@v4
3137
with:
@@ -41,10 +47,10 @@ jobs:
4147
run: dotnet test --no-build --no-restore
4248

4349
- name: pack
44-
run: dotnet pack --no-build --no-restore -o dist
50+
run: dotnet pack --no-build --no-restore -c ${{ matrix.configuration }} -o dist
4551

4652
- name: publish artifact
4753
uses: actions/upload-artifact@v4
4854
with:
49-
name: VbaCompression_${{ env.VersionSuffix }}
55+
name: VbaCompression_${{ env.VersionSuffix }}_${{ matrix.configuration }}
5056
path: '${{ github.workspace }}/dist'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33

4+
dist/
5+
46
# User-specific files
57
*.suo
68
*.user

0 commit comments

Comments
 (0)