mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-22 19:41:07 +07:00
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
name: "build-test-dev"
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
paths-ignore:
|
|
- '*.md'
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths-ignore:
|
|
- '*.md'
|
|
workflow_dispatch:
|
|
branches:
|
|
- dev
|
|
- arm64
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup MSBuild (vswhere-path)
|
|
id: setup_msbuild_explicit
|
|
uses: ./
|
|
with:
|
|
vswhere-path: C:\ProgramData\chocolatey\bin
|
|
|
|
- name: Setup MSBuild (PATH)
|
|
id: setup_msbuild_path
|
|
uses: ./
|
|
|
|
- name: Setup MSBuild (fallback)
|
|
id: setup_msbuild_fallback
|
|
uses: ./
|
|
env:
|
|
PATH: ''
|
|
|
|
- name: Setup MSBuild (x64)
|
|
if: always()
|
|
id: setup_msbuild_path_x64
|
|
uses: ./
|
|
with:
|
|
vs-prerelease: true
|
|
msbuild-architecture: 'x64'
|
|
|
|
- name: Setup MSBuild (arm64)
|
|
if: always()
|
|
id: setup_msbuild_path_arm
|
|
uses: ./
|
|
with:
|
|
vs-prerelease: true
|
|
msbuild-architecture: 'arm64'
|
|
|
|
- name: echo msbuild path
|
|
run: |
|
|
echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}"
|
|
echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}"
|
|
echo "ARM PATH: ${{ steps.setup_msbuild_path_arm.outputs.msbuildPath }}"
|
|
echo "ARM PATH: ${{ steps.setup_msbuild_path_x64.outputs.msbuildPath }}"
|
|
echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}"
|
|
|
|
- name: echo MSBuild
|
|
run: msbuild -version |