aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-01-05 21:32:56 -0300
committerGitHub <noreply@github.com>2022-01-05 21:32:56 -0300
commita71044f7f430e481511f171d5c50a7425e8ac066 (patch)
tree6cf21bfe16f7722807ba665a916ff87be9c73066
parent1a5f749fa1f0484696d0293c0b4b30b4608e198e (diff)
parent4fc9efa398713532bb47ea53818c13ab69d85169 (diff)
downloadNorthstarLauncher-a71044f7f430e481511f171d5c50a7425e8ac066.tar.gz
NorthstarLauncher-a71044f7f430e481511f171d5c50a7425e8ac066.zip
Merge pull request #36 from lolPants/feat/github-actions
Add GitHub Actions workflow
-rw-r--r--.github/workflows/ci.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..c7a8d832
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,33 @@
+name: Build
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+env:
+ BUILD_PROFILE: Release
+
+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 }}/*.dll
+ x64/${{ env.BUILD_PROFILE }}/*.exe
+ x64/${{ env.BUILD_PROFILE }}/*.pdb
+ x64/${{ env.BUILD_PROFILE }}/*.txt