Skip to content

Commit

Permalink
Merge pull request #8 from git-for-windows/github-workflow
Browse files Browse the repository at this point in the history
Add a CI build definition
  • Loading branch information
dscho committed Aug 25, 2023
2 parents 5c5e523 + 4d497c5 commit 18ae369
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build SFX bundle

on: [push, pull_request]

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: CPP/7zip/Bundles/SFXSetup/SFXSetup.sln

jobs:
build:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
config:
# Note: `ReleaseD` builds 7zSD.sfx (which used to be linked to
# `msvcrt.dll` with older Visual C versions, but with recent ones
# links to `vcruntime140.dll`), as opposed to 7zS.sfx, which is
# linked statically.
- name: ReleaseD
artifact: 7zSD
- name: Release
artifact: 7zS

steps:
- uses: actions/checkout@v3

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Build
working-directory: ${{ github.workspace }}
run: msbuild /m /p:Configuration=${{ matrix.config.name }} ${{ env.SOLUTION_FILE_PATH }}

- name: Upload SFX bundle
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.artifact }}
path: CPP/7zip/Bundles/SFXSetup/${{ matrix.config.name }}/${{ matrix.config.artifact }}.sfx

0 comments on commit 18ae369

Please sign in to comment.