Compare commits

...

1 Commits

Author SHA1 Message Date
Sergiu Deitsch
11fb356283
ci: msys2 2024-01-06 16:56:23 +01:00
17 changed files with 65 additions and 22 deletions

View File

@ -4,6 +4,7 @@ on: [push, pull_request]
jobs: jobs:
build-android: build-android:
if: false
name: NDK-C++${{matrix.std}}-${{matrix.abi}}-${{matrix.build_type}} name: NDK-C++${{matrix.std}}-${{matrix.abi}}-${{matrix.build_type}}
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions: permissions:

View File

@ -2,6 +2,7 @@ name: CIFuzz
on: [pull_request] on: [pull_request]
jobs: jobs:
Fuzzing: Fuzzing:
if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Build Fuzzers - name: Build Fuzzers

View File

@ -4,6 +4,7 @@ on: [push, pull_request]
jobs: jobs:
build-linux: build-linux:
if: false
defaults: defaults:
run: run:
shell: bash shell: bash

View File

@ -4,6 +4,7 @@ on: [push, pull_request]
jobs: jobs:
build-linux: build-linux:
if: false
defaults: defaults:
run: run:
shell: bash shell: bash

View File

@ -4,6 +4,7 @@ on: [push, pull_request]
jobs: jobs:
build-macos: build-macos:
if: false
name: AppleClang-C++${{matrix.std}}-${{matrix.build_type}} name: AppleClang-C++${{matrix.std}}-${{matrix.build_type}}
runs-on: macos-12 runs-on: macos-12
permissions: permissions:

View File

@ -4,6 +4,7 @@ on: [push, pull_request]
jobs: jobs:
build-msvc: build-msvc:
if: false
name: ${{matrix.msvc}}-${{matrix.arch}}-C++${{matrix.std}}-${{matrix.build_type}}-${{matrix.lib}} name: ${{matrix.msvc}}-${{matrix.arch}}-C++${{matrix.std}}-${{matrix.build_type}}-${{matrix.lib}}
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
permissions: permissions:
@ -157,11 +158,9 @@ jobs:
build_type: [Debug] build_type: [Debug]
lib: [shared, static] lib: [shared, static]
std: [14, 17, 20, 23] std: [14, 17, 20, 23]
sys: [mingw32, mingw64] sys: [msys]
include: include:
- sys: mingw32 - sys: msys
env: i686
- sys: mingw64
env: x86_64 env: x86_64
steps: steps:
@ -173,6 +172,21 @@ jobs:
languages: cpp languages: cpp
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
if: ${{matrix.sys == 'msys'}}
with:
msystem: ${{matrix.sys}}
install: >-
cmake
gcc
gtest
ninja
python-jinja
python-lxml
python-pip
python-pygments
- uses: msys2/setup-msys2@v2
if: ${{matrix.sys != 'msys'}}
with: with:
msystem: ${{matrix.sys}} msystem: ${{matrix.sys}}
install: >- install: >-

View File

@ -27,6 +27,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _XOPEN_SOURCE 500
#include "base/commandlineflags.h" #include "base/commandlineflags.h"
#include "glog/logging.h" #include "glog/logging.h"
#include "glog/raw_logging.h" #include "glog/raw_logging.h"

View File

@ -27,6 +27,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _XOPEN_SOURCE 500
#include "base/commandlineflags.h" #include "base/commandlineflags.h"
#include "glog/logging.h" #include "glog/logging.h"
#include "glog/raw_logging.h" #include "glog/raw_logging.h"

View File

@ -27,6 +27,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _XOPEN_SOURCE 500
#include "base/commandlineflags.h" #include "base/commandlineflags.h"
#include "glog/logging.h" #include "glog/logging.h"
#include "glog/raw_logging.h" #include "glog/raw_logging.h"

View File

@ -31,6 +31,8 @@
// //
// Unit tests for functions in demangle.c. // Unit tests for functions in demangle.c.
#define _XOPEN_SOURCE 500
#include "demangle.h" #include "demangle.h"
#include <fstream> #include <fstream>

View File

@ -28,6 +28,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _GNU_SOURCE 1 // needed for O_NOFOLLOW and pread()/pwrite() #define _GNU_SOURCE 1 // needed for O_NOFOLLOW and pread()/pwrite()
#define _POSIX_C_SOURCE 1
#include "glog/logging.h" #include "glog/logging.h"

View File

@ -29,24 +29,15 @@
// //
// Author: Ray Sidney // Author: Ray Sidney
#include <fcntl.h> #define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include "config.h" #include <fcntl.h>
#include "utilities.h"
#ifdef HAVE_GLOB_H
# include <glob.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include <chrono> #include <chrono>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring>
#include <fstream> #include <fstream>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
@ -58,16 +49,29 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#include "base/commandlineflags.h" #include "config.h"
#include "glog/logging.h" #ifdef HAVE_GLOB_H
#include "glog/raw_logging.h" # include <glob.h>
#include "googletest.h" #endif
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#ifdef GLOG_USE_GFLAGS #ifdef GLOG_USE_GFLAGS
# include <gflags/gflags.h> # include <gflags/gflags.h>
using namespace GFLAGS_NAMESPACE; using namespace GFLAGS_NAMESPACE;
#endif #endif
#include "base/commandlineflags.h"
#include "glog/logging.h"
#include "glog/raw_logging.h"
#include "googletest.h"
#include "utilities.h"
#ifdef HAVE_LIB_GMOCK #ifdef HAVE_LIB_GMOCK
# include <gmock/gmock.h> # include <gmock/gmock.h>

View File

@ -31,6 +31,8 @@
// Tests the ScopedMockLog class. // Tests the ScopedMockLog class.
#define _XOPEN_SOURCE 500
#include "mock-log.h" #include "mock-log.h"
#include <gmock/gmock.h> #include <gmock/gmock.h>

View File

@ -31,6 +31,8 @@
// //
// Implementation of InstallFailureSignalHandler(). // Implementation of InstallFailureSignalHandler().
#define _POSIX_C_SOURCE 199309L
#include <algorithm> #include <algorithm>
#include <csignal> #include <csignal>
#include <ctime> #include <ctime>

View File

@ -1,4 +1,4 @@
// Copyright (c) 2003, Google Inc. // Copyright (c) 2024, Google Inc.
// All rights reserved. // All rights reserved.
// //
// Redistribution and use in source and binary forms, with or without // Redistribution and use in source and binary forms, with or without
@ -27,6 +27,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define _XOPEN_SOURCE 500
#include "glog/stl_logging.h" #include "glog/stl_logging.h"
#include <functional> #include <functional>

View File

@ -29,6 +29,8 @@
// //
// Author: Shinichiro Hamaji // Author: Shinichiro Hamaji
#define _POSIX_C_SOURCE 1
#include "utilities.h" #include "utilities.h"
#include <atomic> #include <atomic>

View File

@ -28,6 +28,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
// Author: Shinichiro Hamaji // Author: Shinichiro Hamaji
#define _XOPEN_SOURCE 500
#include "utilities.h" #include "utilities.h"
#include "glog/logging.h" #include "glog/logging.h"