Skip to content

Commit

Permalink
[CI] added 3rd party libraries(MinGW only).
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVice committed Jan 28, 2024
1 parent 60bdf80 commit 9d49453
Show file tree
Hide file tree
Showing 34 changed files with 14,553 additions and 76 deletions.
95 changes: 19 additions & 76 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Fetch prebuild of third-party libraries
run: git fetch origin ${{ matrix.os }}
# - name: Fetch prebuild of third-party libraries
# run: git fetch origin ${{ matrix.os }}

- name: Checkout third-party libraries
run: git checkout origin/${{ matrix.os }} -- .
# - name: Checkout third-party libraries
# run: git checkout origin/${{ matrix.os }} -- .

- name: Create project files
run: >-
Expand All @@ -158,24 +158,23 @@ jobs:
--build ${{ env.CMAKE_BUILD_DIR }}
--config ${{ env.CMAKE_CONFIG_TYPE }}
--parallel ${{ steps.cpu-cores.outputs.count }}
--target ant4c_app
- name: Run main application
run: ${{ env.BINARY_PATH }}ant4c${{ env.EXECUTABLE_EXTENSION }}

# - name: Run tests (MinGW)
# if: ${{ 'mingw' == matrix.compiler }}
# run: |
# $Env:PATH="C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin;$Env:SystemRoot\system32;$Env:SystemRoot;$Env:SystemRoot\system32\Wbem;$Env:SystemRoot\system32\WindowsPowerShell\v1.0\;$Env:ProgramFiles\CMake\bin;"
# ctest --build-config ${{ env.CMAKE_CONFIG_TYPE }} --test-dir ${{ env.CMAKE_BUILD_DIR }} --output-on-failure
- name: Run tests (MinGW)
if: ${{ 'mingw' == matrix.compiler }}
run: |
$Env:PATH="C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin;$Env:SystemRoot\system32;$Env:SystemRoot;$Env:SystemRoot\system32\Wbem;$Env:SystemRoot\system32\WindowsPowerShell\v1.0\;$Env:ProgramFiles\CMake\bin;"
ctest --build-config ${{ env.CMAKE_CONFIG_TYPE }} --test-dir ${{ env.CMAKE_BUILD_DIR }} --output-on-failure
# - name: Run tests
# if: ${{ 'mingw' != matrix.compiler }}
# run: >-
# ctest
# --build-config ${{ env.CMAKE_CONFIG_TYPE }}
# --test-dir ${{ env.CMAKE_BUILD_DIR }}
# --output-on-failure
- name: Run tests
if: ${{ 'mingw' != matrix.compiler }}
run: >-
ctest
--build-config ${{ env.CMAKE_CONFIG_TYPE }}
--test-dir ${{ env.CMAKE_BUILD_DIR }}
--output-on-failure
- name: Compress files with zstd
shell: pwsh
Expand All @@ -187,65 +186,9 @@ jobs:
& "zstd" --ultra -22 $path.FullName -o $outputPath
}
# - name: Upload binaries
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.optimized && 'release' || 'debug' }}-${{ matrix.target_platform }}
# retention-days: 1
# path: ${{ env.BINARY_PATH }}/*.zst


- name: Download and unpack Google Test
shell: pwsh
run: |
$url = "https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz"
(New-Object System.Net.WebClient).DownloadFile($url, "${{ env.GOOGLETEST_SRC }}")
mkdir "${{ env.GOOGLETEST_BIN }}"
tar -xzf "${{ env.GOOGLETEST_SRC }}" -C "${{ env.GOOGLETEST_BIN }}"
- name: Download and unpack pugixml
shell: pwsh
run: |
$url = "https://github.com/zeux/pugixml/releases/download/v1.12/pugixml-1.12.tar.gz"
(New-Object System.Net.WebClient).DownloadFile($url, "${{ env.PUGIXML_SRC }}")
mkdir "${{ env.PUGIXML_BIN }}"
tar -xzf "${{ env.PUGIXML_SRC }}" -C "${{ env.PUGIXML_BIN }}"
- name: Create project files (Google Test)
run: >-
cmake
${{ env.CMAKE_TARGET_PLATFORM }}
${{ env.CMAKE_GENERATOR }}
${{ env.CMAKE_BUILD_TYPE }}
-S ${{ env.GOOGLETEST_BIN }}/googletest-release-1.11.0
-B ${{ env.GOOGLETEST_BUILD }}
- name: Create project files (pugixml)
run: >-
cmake
${{ env.CMAKE_TARGET_PLATFORM }}
${{ env.CMAKE_GENERATOR }}
${{ env.CMAKE_BUILD_TYPE }}
-S ${{ env.PUGIXML_BIN }}/pugixml-1.12
-B ${{ env.PUGIXML_BUILD }}
- name: Build (Google Test)
run: >-
cmake --build ${{ env.GOOGLETEST_BUILD }}
--config ${{ env.CMAKE_CONFIG_TYPE }}
--parallel ${{ steps.cpu-cores.outputs.count }}
- name: Build (pugixml)
run: >-
cmake --build ${{ env.PUGIXML_BUILD }}
--config ${{ env.CMAKE_CONFIG_TYPE }}
--parallel ${{ steps.cpu-cores.outputs.count }}
- name: Upload binaries(3rd libs)
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.optimized && 'release' || 'debug' }}-${{ matrix.target_platform }}
path: |
${{ env.GOOGLETEST_BUILD }}
${{ env.PUGIXML_BUILD }}
${{ env.BINARY_PATH }}/*.zst
retention-days: 1
path: ${{ env.BINARY_PATH }}/*.zst
65 changes: 65 additions & 0 deletions googletest/CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This file contains a list of people who've made non-trivial
# contribution to the Google C++ Testing Framework project. People
# who commit code to the project are encouraged to add their names
# here. Please keep the list sorted by first names.

Ajay Joshi <jaj@google.com>
Balázs Dán <balazs.dan@gmail.com>
Benoit Sigoure <tsuna@google.com>
Bharat Mediratta <bharat@menalto.com>
Bogdan Piloca <boo@google.com>
Chandler Carruth <chandlerc@google.com>
Chris Prince <cprince@google.com>
Chris Taylor <taylorc@google.com>
Dan Egnor <egnor@google.com>
Dave MacLachlan <dmaclach@gmail.com>
David Anderson <danderson@google.com>
Dean Sturtevant
Eric Roman <eroman@chromium.org>
Gene Volovich <gv@cite.com>
Hady Zalek <hady.zalek@gmail.com>
Hal Burch <gmock@hburch.com>
Jeffrey Yasskin <jyasskin@google.com>
Jim Keller <jimkeller@google.com>
Joe Walnes <joe@truemesh.com>
Jon Wray <jwray@google.com>
Jói Sigurðsson <joi@google.com>
Keir Mierle <mierle@gmail.com>
Keith Ray <keith.ray@gmail.com>
Kenton Varda <kenton@google.com>
Kostya Serebryany <kcc@google.com>
Krystian Kuzniarek <krystian.kuzniarek@gmail.com>
Lev Makhlis
Manuel Klimek <klimek@google.com>
Mario Tanev <radix@google.com>
Mark Paskin
Markus Heule <markus.heule@gmail.com>
Martijn Vels <mvels@google.com>
Matthew Simmons <simmonmt@acm.org>
Mika Raento <mikie@iki.fi>
Mike Bland <mbland@google.com>
Miklós Fazekas <mfazekas@szemafor.com>
Neal Norwitz <nnorwitz@gmail.com>
Nermin Ozkiranartli <nermin@google.com>
Owen Carlsen <ocarlsen@google.com>
Paneendra Ba <paneendra@google.com>
Pasi Valminen <pasi.valminen@gmail.com>
Patrick Hanna <phanna@google.com>
Patrick Riley <pfr@google.com>
Paul Menage <menage@google.com>
Peter Kaminski <piotrk@google.com>
Piotr Kaminski <piotrk@google.com>
Preston Jackson <preston.a.jackson@gmail.com>
Rainer Klaffenboeck <rainer.klaffenboeck@dynatrace.com>
Russ Cox <rsc@google.com>
Russ Rufer <russ@pentad.com>
Sean Mcafee <eefacm@gmail.com>
Sigurður Ásgeirsson <siggi@google.com>
Sverre Sundsdal <sundsdal@gmail.com>
Szymon Sobik <sobik.szymon@gmail.com>
Takeshi Yoshino <tyoshino@google.com>
Tracy Bialik <tracy@pentad.com>
Vadim Berman <vadimb@google.com>
Vlad Losev <vladl@google.com>
Wolfgang Klier <wklier@google.com>
Zhanyong Wan <wan@google.com>
28 changes: 28 additions & 0 deletions googletest/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright 2008, Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Loading

0 comments on commit 9d49453

Please sign in to comment.