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 fccd92f + 4c64687 commit 6ea9d6c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

# Configuration type to build.
# Note: `ReleaseD` builds 7zSD.sfx (which links to MSVCRT.dll, as opposed to 7zS.sfx, which does not)
BUILD_CONFIGURATION: ReleaseD
SFX_ARTIFACT: 7zSD.sfx

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

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

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

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

0 comments on commit 6ea9d6c

Please sign in to comment.