Skip to content

Commit ab7c90c

Browse files
committed
Merge pull request #8 from git-for-windows/github-workflow
Add a CI build definition
2 parents ad249e4 + 699f5ed commit ab7c90c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/msbuild.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build SFX bundle
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
# Path to the solution file relative to the root of the project.
7+
SOLUTION_FILE_PATH: CPP/7zip/Bundles/SFXSetup/SFXSetup.sln
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
config:
17+
# Note: `ReleaseD` builds 7zSD.sfx (which used to be linked to
18+
# `msvcrt.dll` with older Visual C versions, but with recent ones
19+
# links to `vcruntime140.dll`), as opposed to 7zS.sfx, which is
20+
# linked statically.
21+
- name: ReleaseD
22+
artifact: 7zSD
23+
- name: Release
24+
artifact: 7zS
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Add MSBuild to PATH
30+
uses: microsoft/setup-msbuild@v2.0.0
31+
32+
- name: Build
33+
working-directory: ${{ github.workspace }}
34+
run: msbuild /m /p:Configuration=${{ matrix.config.name }} ${{ env.SOLUTION_FILE_PATH }}
35+
36+
- name: Upload SFX bundle
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: ${{ matrix.config.artifact }}
40+
path: CPP/7zip/Bundles/SFXSetup/${{ matrix.config.name }}/${{ matrix.config.artifact }}.sfx

0 commit comments

Comments
 (0)