From 5aa3143784988d3199bff6f46197efa191ac9f25 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 14 Jul 2021 13:39:50 +0200 Subject: [PATCH 1/2] Add a CI build definition It is always good to have some automation to verify that things build. --- .github/workflows/msbuild.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 00000000..c13b9bb7 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,24 @@ +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. + BUILD_CONFIGURATION: Release + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 9bd0ec0de9799a737cde36889c44b73ff3ca8372 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 14 Jul 2021 11:47:20 +0000 Subject: [PATCH 2/2] ci: upload built artifact Signed-off-by: Johannes Schindelin --- .github/workflows/msbuild.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index c13b9bb7..634245a1 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -22,3 +22,9 @@ jobs: - 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@v1 + with: + name: sfx-bundle + path: CPP/7zip/Bundles/SFXSetup/Release/7zS.sfx