mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
432f005859
This was updated and now always fails, but it always did so - you can test it with 3.1.2 as well, it's just not happy with the iothread stuff. Because it's super easy to test this locally this disables the github actions test so it doesn't complain *constantly*. See #7681
131 lines
2.9 KiB
YAML
131 lines
2.9 KiB
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install deps
|
|
run: |
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip
|
|
sudo pip3 install pexpect
|
|
- name: cmake
|
|
env:
|
|
# Some warnings upgraded to errors to match Open Build Service platforms
|
|
CXXFLAGS: "-Werror=address -Werror=return-type"
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake ..
|
|
- name: make
|
|
run: |
|
|
make
|
|
- name: make test
|
|
run: |
|
|
make test
|
|
|
|
ubuntu-32bit-vendored-pcre2:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install deps
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install gettext lib32ncurses5-dev python3-pip g++-multilib
|
|
sudo pip3 install pexpect
|
|
- name: cmake
|
|
env:
|
|
CXXFLAGS: "-m32 -Werror=address -Werror=return-type"
|
|
CFLAGS: "-m32"
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake ..
|
|
- name: make
|
|
run: |
|
|
make
|
|
- name: make test
|
|
run: |
|
|
make test
|
|
|
|
ubuntu-asan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install deps
|
|
run: |
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip
|
|
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
|
|
UBSAN_OPTIONS: print_stacktrace=1:report_error_type=1:suppressions=$TRAVIS_BUILD_DIR/build_tools/ubsan.blacklist
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake ..
|
|
- name: make
|
|
run: |
|
|
make
|
|
- name: make test
|
|
run: |
|
|
make test
|
|
|
|
ubuntu-threadsan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install deps
|
|
run: |
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip
|
|
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: |
|
|
# HACK: Disabled for now because it fails all the time
|
|
true || make test
|
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install deps
|
|
run: |
|
|
brew install python3
|
|
sudo pip3 install pexpect
|
|
- name: cmake
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake -DWITH_GETTEXT=NO ..
|
|
- name: make
|
|
run: |
|
|
make
|
|
- name: make test
|
|
run: |
|
|
make test
|