Skip to content

Commit

Permalink
Merge pull request #7 from xboxoneresearch/feat/CI/initial
Browse files Browse the repository at this point in the history
feat(ci): create CI workflow msbuild.yml
  • Loading branch information
carrot-c4k3 authored Aug 19, 2024
2 parents 3aca48f + a1fcbf5 commit a7c91da
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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@v2

- 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

0 comments on commit a7c91da

Please sign in to comment.