Skip to content

Commit

Permalink
Merge pull request #2 from reunanen/add-github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions
  • Loading branch information
reunanen authored Oct 6, 2024
2 parents 2c2e308 + 6407ac8 commit a9ea98e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: MSBuild

on:
push:
pull_request:

env:
PROJECT_FILE: opencv.vcxproj

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Get OpenCV itself
run: git submodule update --init

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.PROJECT_FILE}}

0 comments on commit a9ea98e

Please sign in to comment.