aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Baron <jackmbaron@gmail.com>2022-01-04 18:01:32 +0000
committerJack Baron <jackmbaron@gmail.com>2022-01-04 18:01:32 +0000
commit2010f3de22f82e0bf9287e31c6d8ae49aae7a250 (patch)
treef0e37a2604fff31ceca376b2f7be535b370d9b9d
parent7d954b995971389716ce6e25a1c202ccd4235eb3 (diff)
downloadNorthstarLauncher-2010f3de22f82e0bf9287e31c6d8ae49aae7a250.tar.gz
NorthstarLauncher-2010f3de22f82e0bf9287e31c6d8ae49aae7a250.zip
add github actions workflow
-rw-r--r--.github/workflows/ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..c3ac202a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: Build
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+env:
+ # Change to Release for release builds in CI
+ BUILD_PROFILE: Debug
+
+jobs:
+ build:
+ runs-on: windows-2022
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Setup MSBuild
+ uses: microsoft/setup-msbuild@v1.1
+ - name: Build
+ run: msbuild /p:Configuration=${{ env.BUILD_PROFILE }}
+ - name: Extract Short Commit Hash
+ id: extract
+ shell: bash
+ run: echo ::set-output name=commit::`git rev-parse --short HEAD`
+ - name: Upload Build Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: NorthstarLauncher-${{ steps.extract.outputs.commit }}
+ path: x64/${{ env.BUILD_PROFILE }}/