Skip to content

chore(vendor): upgrade to latest googletest release #3205

chore(vendor): upgrade to latest googletest release

chore(vendor): upgrade to latest googletest release #3205

Workflow file for this run

# Copyright (C) 2020 Matthew Glazar
# See end of file for extended copyright information.
name: build unvendored
on:
push:
pull_request:
types: [opened, synchronize]
jobs:
arch-linux:
name: Arch Linux
runs-on: ubuntu-latest
container: archlinux:base
steps:
- name: install dependencies
run: |
pacman -Syyuu --noconfirm \
base-devel \
benchmark \
cmake \
git \
gtest \
simdjson \
sudo
# HACK(strager): Create a user so we can run makepkg. makepkg refuses
# to run as root.
useradd arch-builder
printf 'arch-builder ALL=(ALL) NOPASSWD: ALL\n' >/etc/sudoers.d/arch-builder
# HACK(strager): Work around the following error from
# 'git remote add origin ...':
#
# fatal: unsafe repository ('/__w/quick-lint-js/quick-lint-js' is owned by someone else)
#
# See also: https://github.com/actions/checkout/issues/760
- name: work around permission issue
run: git config --global --add safe.directory /__w/quick-lint-js/quick-lint-js
- name: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: configure
run: |
# HACK(strager): QUICK_LINT_JS_HAVE_WORKING_CHAR8_T is needed because
# Arch's gmock doesn't link with -fchar8_t.
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=YES \
-DQUICK_LINT_JS_ENABLE_BENCHMARKS=YES \
-DQUICK_LINT_JS_HAVE_WORKING_FCHAR8_T=NO \
-DQUICK_LINT_JS_USE_BUNDLED_GOOGLE_BENCHMARK=NO \
-DQUICK_LINT_JS_USE_BUNDLED_GOOGLE_TEST=NO \
-DQUICK_LINT_JS_USE_BUNDLED_SIMDJSON=NO \
-S . -B .
shell: bash
- name: build
run: cmake --build . --config Debug
- name: test
run: ctest --build-config Debug --verbose
ubuntu:
name: Ubuntu 24.04
runs-on: ubuntu-24.04
steps:
- name: install dependencies
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
libbenchmark-dev \
libgmock-dev \
libgtest-dev \
libsimdjson-dev
- name: checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: configure
run: |
# HACK(strager): QUICK_LINT_JS_HAVE_WORKING_CHAR8_T is needed because
# Arch's gmock doesn't link with -fchar8_t.
cmake \
-DCMAKE_EXE_LINKER_FLAGS=-ffat-lto-objects \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=YES \
-DQUICK_LINT_JS_ENABLE_BENCHMARKS=YES \
-DQUICK_LINT_JS_HAVE_WORKING_FCHAR8_T=NO \
-DQUICK_LINT_JS_USE_BUNDLED_GOOGLE_BENCHMARK=NO \
-DQUICK_LINT_JS_USE_BUNDLED_GOOGLE_TEST=NO \
-DQUICK_LINT_JS_USE_BUNDLED_SIMDJSON=NO \
-S . -B .
shell: bash
- name: build
run: cmake --build . --config Debug
- name: test
run: ctest --build-config Debug --verbose
# quick-lint-js finds bugs in JavaScript programs.
# Copyright (C) 2020 Matthew Glazar
#
# This file is part of quick-lint-js.
#
# quick-lint-js is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# quick-lint-js 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with quick-lint-js. If not, see <https://www.gnu.org/licenses/>.