2021-12-02 05:54:29 -08:00
|
|
|
name: make test
|
2020-03-31 17:07:06 +02:00
|
|
|
|
2021-04-07 20:27:58 +08:00
|
|
|
on: [push, pull_request]
|
2020-03-31 17:07:06 +02:00
|
|
|
|
2021-03-21 22:12:33 -05:00
|
|
|
env:
|
|
|
|
CTEST_PARALLEL_LEVEL: "1"
|
2022-01-02 17:47:05 -08:00
|
|
|
CMAKE_BUILD_PARALLEL_LEVEL: "4"
|
2021-03-21 22:12:33 -05:00
|
|
|
|
2022-06-05 00:29:28 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-03-31 17:07:06 +02:00
|
|
|
jobs:
|
|
|
|
ubuntu:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2021-04-25 16:06:03 +02:00
|
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux
|
2020-06-18 17:09:47 +02:00
|
|
|
sudo pip3 install pexpect
|
2021-07-29 17:14:02 +02:00
|
|
|
# Generate a locale that uses a comma as decimal separator.
|
|
|
|
sudo locale-gen fr_FR.UTF-8
|
2020-03-31 17:07:06 +02:00
|
|
|
- name: cmake
|
2020-11-11 17:43:24 +01:00
|
|
|
env:
|
|
|
|
# Some warnings upgraded to errors to match Open Build Service platforms
|
|
|
|
CXXFLAGS: "-Werror=address -Werror=return-type"
|
2020-03-31 17:07:06 +02:00
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
2020-11-07 07:55:47 +01:00
|
|
|
make test
|
2020-03-31 17:07:06 +02:00
|
|
|
|
2022-07-02 18:37:51 -07:00
|
|
|
ubuntu-32bit-fetched-pcre2:
|
2020-11-11 17:43:50 +01:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2020-12-19 17:24:11 -08:00
|
|
|
sudo apt update
|
2021-04-25 16:06:03 +02:00
|
|
|
sudo apt install gettext lib32ncurses5-dev python3-pip g++-multilib tmux
|
2020-11-11 17:43:50 +01:00
|
|
|
sudo pip3 install pexpect
|
|
|
|
- name: cmake
|
|
|
|
env:
|
|
|
|
CXXFLAGS: "-m32 -Werror=address -Werror=return-type"
|
|
|
|
CFLAGS: "-m32"
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
2021-04-01 22:40:06 +02:00
|
|
|
cmake -DFISH_USE_SYSTEM_PCRE2=OFF ..
|
2020-11-11 17:43:50 +01:00
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
|
|
|
make test
|
|
|
|
|
2020-11-11 17:46:02 +01:00
|
|
|
ubuntu-asan:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2021-04-25 16:06:03 +02:00
|
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux
|
2020-11-11 17:46:02 +01:00
|
|
|
sudo pip3 install pexpect
|
|
|
|
- name: cmake
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
|
|
|
CXXFLAGS: "-fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address"
|
|
|
|
ASAN_OPTIONS: check_initialization_order=1:detect_stack_use_after_return=1:detect_leaks=1
|
2021-04-07 20:29:54 +08:00
|
|
|
UBSAN_OPTIONS: print_stacktrace=1:report_error_type=1
|
2022-04-17 13:57:52 +02:00
|
|
|
LSAN_OPTIONS: verbosity=1:log_threads=1
|
2020-11-11 17:46:02 +01:00
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
2022-04-18 10:04:51 +02:00
|
|
|
# This is broken as of 2022-04-18, ASAN crashes on
|
|
|
|
# autosuggest_suggest_special for no discernable reason.
|
|
|
|
# Unable to reproduce locally.
|
|
|
|
# - name: make test
|
|
|
|
# run: |
|
|
|
|
# make test
|
2020-11-11 17:46:02 +01:00
|
|
|
|
|
|
|
ubuntu-threadsan:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2021-04-25 16:06:03 +02:00
|
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip tmux
|
2020-11-11 17:46:02 +01:00
|
|
|
sudo pip3 install pexpect
|
|
|
|
- name: cmake
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
|
|
|
CXXFLAGS: "-fsanitize=thread"
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
2021-02-06 22:18:55 -08:00
|
|
|
make test
|
2020-11-02 21:04:36 +01:00
|
|
|
|
|
|
|
macos:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
sudo pip3 install pexpect
|
2021-04-25 16:06:03 +02:00
|
|
|
brew install tmux
|
2020-11-02 21:04:36 +01:00
|
|
|
- name: cmake
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DWITH_GETTEXT=NO ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
|
|
|
make test
|