-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from dscho/vswhere
Allow the mspdb DLL to be found via vswhere.exe
- Loading branch information
Showing
2 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: build and test cv2pdb | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
# Path to the solution file relative to the root of the project. | ||
SOLUTION_FILE_PATH: src/cv2pdb.vcxproj | ||
|
||
# Configuration type to build. | ||
BUILD_CONFIGURATION: Release | ||
BUILD_PLATFORM: x64 | ||
BUILD_PLATFORM_TOOLSET: v142 | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: msbuild /m /p:PlatformToolset=${{env.BUILD_PLATFORM_TOOLSET}} /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | ||
- name: Upload bin/ | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: bin | ||
path: bin | ||
test-with-g4w-sdk: | ||
runs-on: windows-latest | ||
needs: build | ||
steps: | ||
- name: Download bin/ | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: bin | ||
path: bin | ||
- uses: git-for-windows/setup-git-for-windows-sdk@v1 | ||
- name: verify using Git for Windows' GCC | ||
shell: bash | ||
run: | | ||
set -x && | ||
cat >hello.c <<-\EOF && | ||
#include <stdio.h> | ||
int main(int argc, char **argv) | ||
{ | ||
printf("Hello, world\n"); | ||
return 0; | ||
} | ||
EOF | ||
gcc -g -o hello.exe hello.c && | ||
bin/${{env.BUILD_CONFIGURATION}}*/cv2pdb.exe hello.exe world.exe && | ||
ls -l hello* world* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters