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

GitHubActions: run units target on Windows-10 building with Visual Studio 2017/2019 Build Tools #3008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
34 changes: 34 additions & 0 deletions .github/workflows/testing-windows10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: run units target on Windows-10

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

jobs:
testing:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
visual-studio-version: [2017, 2019]

steps:
- run: choco install -y visualstudio${{ matrix.visual-studio-version }}buildtools
- run: choco install -y visualstudio${{ matrix.visual-studio-version }}-workload-vctools

- uses: actions/checkout@v2

- name: Build with NMake
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.visual-studio-version }}\BuildTools\Common7\Tools\VsDevCmd.bat"
nmake -f mk_mvc.mak

- run: ./ctags --version

- run: C:\msys64\usr\bin\bash.exe -l -i -c "pacman -S --noconfirm python"
- run: C:\msys64\usr\bin\bash.exe -l -i -c "printf 'cd %s' $(cygpath '${{ github.workspace }}') >> ~/.bashrc"
- run: C:\msys64\usr\bin\bash.exe -l -i -c "python misc/units.py tmain ./Tmain --ctags=./ctags.exe --readtags=./readtags.exe --show-diff-output --shell=c:/msys64/usr/bin/bash"