setup-msbuild/.github/workflows/test.yml

58 lines
1.3 KiB
YAML
Raw Normal View History

2020-02-01 02:14:06 +07:00
name: "build-test-dev"
on:
2020-04-05 01:48:47 +07:00
pull_request:
branches:
- dev
paths-ignore:
- '*.md'
2020-02-01 02:14:06 +07:00
push:
branches:
- dev
paths-ignore:
- '*.md'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild (vswhere-path)
id: setup_msbuild_explicit
2020-02-01 02:27:06 +07:00
uses: ./
2020-02-01 02:14:06 +07:00
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: ''
2020-02-01 02:14:06 +07:00
2021-11-02 10:01:10 +07:00
- name: Setup MSBuild (x64)
id: setup_msbuild_path
uses: ./
with:
vs-prerelease: true
msbuild-architecture: 'x64'
2022-11-08 06:54:38 +07:00
- name: Setup MSBuild (arm64)
id: setup_msbuild_path_arm
uses: ./
with:
vs-prerelease: true
msbuild-architecture: 'arm64'
2020-02-01 02:14:06 +07:00
- name: echo msbuild path
run: |
echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}"
echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}"
2022-11-08 06:54:38 +07:00
echo "ARM PATH: ${{ steps.setup_msbuild_path_arm.outputs.msbuildPath }}"
echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}"
2020-02-01 02:14:06 +07:00
- name: echo MSBuild
run: msbuild -version