From 0789be5cf81518e12324dabd7544e45dc1a1b92c Mon Sep 17 00:00:00 2001 From: tuxuser <462620+tuxuser@users.noreply.github.com> Date: Mon, 19 Aug 2024 06:08:30 +0200 Subject: [PATCH 1/3] feat(ci): create CI workflow msbuild.yml --- .github/workflows/msbuild.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 0000000..a227a64 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,26 @@ +name: MSBuild + +on: + push: + pull_request: + +env: + SOLUTION_FILE_PATH: collat_payload.sln + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Platform=x64 /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 0da723280c0d58f38628f1b3129fdad0dc950f55 Mon Sep 17 00:00:00 2001 From: tuxuser <462620+tuxuser@users.noreply.github.com> Date: Mon, 19 Aug 2024 06:18:00 +0200 Subject: [PATCH 2/3] feat(CI): use setup-msbuild@v2 --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index a227a64..9285eb8 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 + uses: microsoft/setup-msbuild@v2 - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} From a1fcbf5493a15d36230757524764103a9bcd68a0 Mon Sep 17 00:00:00 2001 From: tuxuser <462620+tuxuser@users.noreply.github.com> Date: Mon, 19 Aug 2024 06:37:27 +0200 Subject: [PATCH 3/3] feat(ci): Handle artifacts & release --- .github/workflows/msbuild.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 9285eb8..4a98af9 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -24,3 +24,27 @@ jobs: - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} run: msbuild /m /p:Platform=x64 /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + + - name: Copy files + run: | + mkdir release\ + cp README.md release\ + cp LICENSE release\ + cp x64\Release\collat_payload.exe release\ + cp solstice_artifacts\* release\ + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: collateral_damage_artifacts + path: | + release\** + + - name: Bundle binaries + run: 7z a -tzip collateral_damage.zip release\** + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: collateral_damage.zip \ No newline at end of file