Skip to content

Commit

Permalink
Add MSVC build to github action builds
Browse files Browse the repository at this point in the history
  • Loading branch information
The-EG authored and Webster Sheets committed Dec 10, 2020
1 parent ca1ad55 commit 159e9ea
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,51 @@ env:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-msvc:
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
path: pioneer

- name: Checkout pioneer-thirdparty
uses: actions/checkout@v2
with:
repository: pioneerspacesim/pioneer-thirdparty
path: pioneer-thirdparty

- name: Build MSVC
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd pioneer
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="C:/Program Files/Pioneer" -DPIONEER_DATA_DIR="C:/Program Files/Pioneer/data" -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_MESSAGE=NEVER -DGIT_EXECUTABLE="c:/Program Files/Git/cmd/git.exe"
cmake --build .
- name: Build Pioneer Data
shell: cmd
run: |
cd pioneer
modelcompiler.exe -b inplace
- name: Build Release
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd pioneer
cd build
cmake --build . --target install
cmake --build . --target win-installer
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Windows-Artifacts
path: pioneer/pioneer-*-win.exe

build-gcc:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
5 changes: 0 additions & 5 deletions pioneer.iss.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl"
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "scottishgaelic"; MessagesFile: "compiler:Languages\ScottishGaelic.isl"
Name: "serbiancyrillic"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
Name: "serbianlatin"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
Expand Down

0 comments on commit 159e9ea

Please sign in to comment.