Skip to content

Commit

Permalink
GitHubActions: run units target on Windows-10 building with Visual St…
Browse files Browse the repository at this point in the history
…udio 2017/2019 Build Tools
  • Loading branch information
leleliu008 committed May 6, 2021
1 parent f61ef4a commit fc5c753
Showing 1 changed file with 34 additions and 0 deletions.
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"

0 comments on commit fc5c753

Please sign in to comment.