aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorF1F7Y <64418963+F1F7Y@users.noreply.github.com>2023-06-22 11:47:46 +0200
committerGitHub <noreply@github.com>2023-06-22 11:47:46 +0200
commit89996405ee6341252836d606d5de02fff83ec3ab (patch)
treed8e70b4f8a1a2d125e4693806799477f6a46bfe7 /.github/workflows
parent9cf27a61fd7e096f816c512375ef2340ea4dfb10 (diff)
downloadNorthstarLauncher-89996405ee6341252836d606d5de02fff83ec3ab.tar.gz
NorthstarLauncher-89996405ee6341252836d606d5de02fff83ec3ab.zip
Move to cmake (#467)v1.15.0-rc1
Moves the entire project to cmake as the build system
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml13
-rw-r--r--.github/workflows/release.yml16
2 files changed, 14 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1ac19129..e98d7cd1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,10 +10,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- - name: Setup MSBuild
- uses: microsoft/setup-msbuild@v1.1
+ - name: Setup msvc
+ uses: ilammy/msvc-dev-cmd@v1
+ - name: Configure cmake
+ run: cmake -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="${{ env.BUILD_PROFILE }}"
- name: Build
- run: msbuild /p:Configuration=${{ env.BUILD_PROFILE }}
+ run: cmake --build .
- name: Extract Short Commit Hash
id: extract
shell: bash
@@ -23,10 +25,7 @@ jobs:
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
+ game/
format-check:
runs-on: ubuntu-latest
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index adc7cc6c..e5ba1138 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -16,8 +16,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- - name: Setup MSBuild
- uses: microsoft/setup-msbuild@v1.1
+ - name: Setup msvc
+ uses: ilammy/msvc-dev-cmd@v1
+ - name: Configure cmake
+ run: cmake -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Release"
- name: Setup resource file version
shell: bash
run: |
@@ -25,22 +27,20 @@ jobs:
FILEVERSION=$(echo ${{ env.NORTHSTAR_VERSION }} | tr '.' ',' | sed -E 's/-rc[0-9]+//' | tr -d '[:alpha:]')
sed -i "s/0,0,0,1/${FILEVERSION}/g" NorthstarDLL/ns_version.h
- name: Build
- run: |
- msbuild /p:Configuration=Release R2Northstar.sln
+ run: cmake --build .
- name: Upload launcher build as artifact
uses: actions/upload-artifact@v3
with:
name: northstar-launcher
path: |
- x64/Release/*.dll
- x64/Release/*.exe
- x64/Release/*.txt
+ game/
- name: Upload debug build artifact
uses: actions/upload-artifact@v3
with:
name: launcher-debug-files
path: |
- x64/Release/*.pdb
+ game/*.pdb
+ game/bin/x64_retail/*.pdb
upload-launcher-to-release:
if: startsWith(github.ref, 'refs/tags/v')