Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build VS solution during CI #395

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,32 @@ on:
branches: ["master"]

jobs:
windows:
windows-vs2022:
name: Windows VS2022
runs-on: windows-latest
strategy:
matrix:
include:
- config: Release
- config: Debug
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
toolset: 14.30
- name: Configure
run: setup_vs2022.bat
shell: cmd
- name: Build
run: msbuild.exe build\windows-vs2022\Falcor.sln /p:Configuration=${{ matrix.config }}
shell: cmd
windows-ninja-msvc:
name: Windows Ninja/MSVC
runs-on: windows-latest
env:
Expand All @@ -21,21 +46,21 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
run: setup.bat
shell: cmd
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
toolset: 14.30
- name: Configure
run: setup.bat
shell: cmd
- name: Build
run: |
%CMAKE_EXE% --preset %CMAKE_BUILD_PRESET%
%CMAKE_EXE% --build build/%CMAKE_BUILD_PRESET% --config ${{ matrix.config }}
shell: cmd
linux:
linux-gcc:
name: Linux/GCC
runs-on: ubuntu-22.04
env:
Expand All @@ -51,10 +76,10 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install system dependencies
- name: Setup system dependencies
run: sudo apt install -y xorg-dev libgtk-3-dev
shell: bash
- name: Setup
- name: Configure
run: ./setup.sh
shell: bash
- name: Build
Expand Down