-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#2334: Set up Windows CI on Github Actions (#2326)
Sets up 3 jobs on Windows Server 2016 on Github Actions: + 32-bit debug build and tests + 64-bit debug build and tests + 32-bit and 64-bit release build plus drheapstat debug build, no tests Adds parameters to runsuite.cmake for the control split into these 3 jobs. Each job is roughly under 15 minutes. Each job downloads and installs ninja, doxygen, and WiX and uses VS2017. Adapts runsuite_wrapper.pl to use native Windows perl rather than Cygwin perl. No fork is available, so we tee the output to a file and read the file back in. Fixes a missed final line in the suite results processing. Adds default suppressions for invalid heap arguments (#2339) and leaks (#2340) in the VS2017 CRT. Generalizes test output for cs2bug and the suppress* tests in an attempt to get them to pass. Augments umbra_address_space_init() with a better error message to avoid cases like #2328 in the future. Shrinks the timeout to 60s for the failing umbra_client_faulty_redzone to eliminate several minutes of testing time just waiting for that test to time out; #2341 covers fixing it. Augments the test ignore list in order to get the jobs green. Issue: #2328, #2334, #2339, #2340, #2341
- Loading branch information
1 parent
e7564b4
commit 6cb4599
Showing
12 changed files
with
329 additions
and
68 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,144 @@ | ||
# ********************************************************** | ||
# Copyright (c) 2020 Google, Inc. All rights reserved. | ||
# ********************************************************** | ||
|
||
# Dr. Memory: the memory debugger | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
# License as published by the Free Software Foundation; | ||
# version 2.1 of the License, and no later version. | ||
# | ||
# This library is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Library General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with this library; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
|
||
# Github Actions workflow for Windows Continuous Integration testing. | ||
|
||
name: ci-windows | ||
on: | ||
# Run on pushes to master and on pull request changes, including from a | ||
# forked repo with no "push" trigger, while avoiding duplicate triggers. | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
# Manual trigger using the Actions page. May remove when integration complete. | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: cmd | ||
|
||
jobs: | ||
# 32-bit VS2017 and tests: | ||
vs2017-32: | ||
runs-on: windows-2016 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch Sources | ||
run: git fetch --no-tags --depth=1 origin master | ||
|
||
- name: Download Packages | ||
shell: powershell | ||
run: | | ||
md c:\projects\install | ||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip", "c:\projects\install\ninja.zip") | ||
(New-Object System.Net.WebClient).DownloadFile("http://doxygen.nl/files/doxygen-1.8.19.windows.x64.bin.zip", "c:\projects\install\doxygen.zip") | ||
- name: Run Suite | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
echo ------ Setting up paths ------ | ||
7z x c:\projects\install\ninja.zip -oc:\projects\install\ninja > nul | ||
set PATH=c:\projects\install\ninja;%PATH% | ||
7z x c:\projects\install\doxygen.zip -oc:\projects\install\doxygen > nul | ||
set PATH=c:\projects\install\doxygen;%PATH% | ||
dir "c:\Program Files (x86)\WiX Toolset"* | ||
set PATH=C:\Program Files (x86)\WiX Toolset v3.11\bin;%PATH% | ||
call "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars32.bat" | ||
echo ------ Running suite ------ | ||
echo PATH is "%PATH%" | ||
echo Running in directory "%CD%" | ||
perl tests/runsuite_wrapper.pl travis use_ninja 32_only drmemory_only debug_only | ||
# 64-bit VS2017 and tests: | ||
vs2017-64: | ||
runs-on: windows-2016 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch Sources | ||
run: git fetch --no-tags --depth=1 origin master | ||
|
||
- name: Download Packages | ||
shell: powershell | ||
run: | | ||
md c:\projects\install | ||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip", "c:\projects\install\ninja.zip") | ||
(New-Object System.Net.WebClient).DownloadFile("http://doxygen.nl/files/doxygen-1.8.19.windows.x64.bin.zip", "c:\projects\install\doxygen.zip") | ||
- name: Run Suite | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
echo ------ Setting up paths ------ | ||
7z x c:\projects\install\ninja.zip -oc:\projects\install\ninja > nul | ||
set PATH=c:\projects\install\ninja;%PATH% | ||
7z x c:\projects\install\doxygen.zip -oc:\projects\install\doxygen > nul | ||
set PATH=c:\projects\install\doxygen;%PATH% | ||
dir "c:\Program Files (x86)\WiX Toolset"* | ||
set PATH=C:\Program Files (x86)\WiX Toolset v3.11\bin;%PATH% | ||
call "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars32.bat" | ||
echo ------ Running suite ------ | ||
echo PATH is "%PATH%" | ||
echo Running in directory "%CD%" | ||
perl tests/runsuite_wrapper.pl travis use_ninja 64_only debug_only | ||
# drheapstat and release builds: | ||
vs2017-builds: | ||
runs-on: windows-2016 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch Sources | ||
run: git fetch --no-tags --depth=1 origin master | ||
|
||
- name: Download Packages | ||
shell: powershell | ||
run: | | ||
md c:\projects\install | ||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip", "c:\projects\install\ninja.zip") | ||
(New-Object System.Net.WebClient).DownloadFile("http://doxygen.nl/files/doxygen-1.8.19.windows.x64.bin.zip", "c:\projects\install\doxygen.zip") | ||
- name: Run Suite | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
echo ------ Setting up paths ------ | ||
7z x c:\projects\install\ninja.zip -oc:\projects\install\ninja > nul | ||
set PATH=c:\projects\install\ninja;%PATH% | ||
7z x c:\projects\install\doxygen.zip -oc:\projects\install\doxygen > nul | ||
set PATH=c:\projects\install\doxygen;%PATH% | ||
dir "c:\Program Files (x86)\WiX Toolset"* | ||
set PATH=C:\Program Files (x86)\WiX Toolset v3.11\bin;%PATH% | ||
call "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars32.bat" | ||
echo ------ Running suite ------ | ||
echo PATH is "%PATH%" | ||
echo Running in directory "%CD%" | ||
perl tests/runsuite_wrapper.pl travis use_ninja nontest_only |
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
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
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
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
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
Oops, something went wrong.