From 2010f3de22f82e0bf9287e31c6d8ae49aae7a250 Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Tue, 4 Jan 2022 18:01:32 +0000 Subject: add github actions workflow --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github/workflows') 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 }}/ -- cgit v1.2.3 From 258e2357d341b3f6493877c9f49b8d635060213e Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Tue, 4 Jan 2022 18:54:39 +0000 Subject: don't upload all files --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3ac202a..e55023e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: NorthstarLauncher-${{ steps.extract.outputs.commit }} - path: x64/${{ env.BUILD_PROFILE }}/ + path: | + x64/${{ env.BUILD_PROFILE }}/*.dll + x64/${{ env.BUILD_PROFILE }}/*.exe + x64/${{ env.BUILD_PROFILE }}/*.pdb -- cgit v1.2.3 From 2200773cc2cb54dce0032e0ed7341b10f49ea05c Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Tue, 4 Jan 2022 19:27:29 +0000 Subject: switch to release builds --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e55023e8..fc370151 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,7 @@ on: pull_request: env: - # Change to Release for release builds in CI - BUILD_PROFILE: Debug + BUILD_PROFILE: Release jobs: build: -- cgit v1.2.3 From 4fc9efa398713532bb47ea53818c13ab69d85169 Mon Sep 17 00:00:00 2001 From: Barichello Date: Wed, 5 Jan 2022 21:32:09 -0300 Subject: Add text files to CI artifacts --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc370151..c7a8d832 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,3 +30,4 @@ jobs: x64/${{ env.BUILD_PROFILE }}/*.dll x64/${{ env.BUILD_PROFILE }}/*.exe x64/${{ env.BUILD_PROFILE }}/*.pdb + x64/${{ env.BUILD_PROFILE }}/*.txt -- cgit v1.2.3