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

Convert to CMake #3

Merged
merged 8 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
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
51 changes: 30 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
name: MSBuild
name: Build dvsku_toolkit

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
SOLUTION_FILE_PATH: src/
BUILD_CONFIGURATION: Release

permissions:
contents: read
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: windows-2022
build:
runs-on: windows-latest

strategy:
matrix:
architecture: [x86, x64]
build_type: [Release]

steps:
- name: Checkout repo
uses: actions/checkout@v3

steps:
- uses: actions/checkout@v3
- name: Set up VS toolchain
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.architecture }}

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Build
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ runner.workspace }}/build
configure-options: -G Ninja -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl
build-type: ${{ matrix.build_type }}
Loading
Loading