Skip to content

Commit 3b59c0e

Browse files
committed
github: all workflow fails on first error
1 parent 92861e7 commit 3b59c0e

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

.github/workflows/build_on_arch.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: continuous integration on arch
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
410

511
jobs:
612
build_on_arch:
713
runs-on: ubuntu-20.04
8-
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
9-
continue-on-error: true
14+
name: Build on ${{ matrix.distro }} for ${{ matrix.arch }}
1015

1116
strategy:
1217
matrix:

.github/workflows/build_on_push.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ${{ matrix.os }}
8+
name: Build on ${{ matrix.os }} with multilib ${{ matrix.multilib }}
9+
810
strategy:
9-
fail-fast: false
1011
matrix:
11-
os: [ubuntu-20.04]
12-
multilib: [true, false]
1312
include:
13+
- os: ubuntu-20.04
14+
multilib: true
15+
- os: ubuntu-20.04
16+
multilib: false
1417
- os: macos-10.15
1518
multilib: false
1619

@@ -30,22 +33,20 @@ jobs:
3033
brew install cmake pkg-config fmt spdlog nlohmann-json grpc
3134
echo "PKG_CONFIG_PATH=$(brew --prefix)/opt/[email protected]/lib/pkgconfig" >> $GITHUB_ENV
3235
33-
- name: Set up Python
34-
uses: actions/setup-python@v2
36+
- uses: actions/setup-python@v2
3537
with:
3638
python-version: '3.x'
37-
38-
- name: Install python test dependencies
39-
run: |
40-
python -m pip install --upgrade pip
41-
pip install lit pex pycodestyle
39+
cache: 'pip'
40+
cache-dependency-path: '**/requirements.txt'
4241

4342
- name: Prepare
4443
run: |
44+
pip install -r test/requirements.txt
4545
mkdir "$HOME/work/bear_build"
4646
mkdir "$HOME/work/bear_install"
4747
echo "BUILD_DIR=$HOME/work/bear_build" >> $GITHUB_ENV
4848
echo "INSTALL_DIR=$HOME/work/bear_install" >> $GITHUB_ENV
49+
echo "ZLIB_SRC_DIR=$HOME/work/zlib" >> $GITHUB_ENV
4950
echo "$HOME/work/bear_install/bin:$PATH" >> $GITHUB_PATH
5051
5152
- name: Build
@@ -58,13 +59,9 @@ jobs:
5859
cmake -B "$BUILD_DIR" -S "$GITHUB_WORKSPACE" $CMAKE_OPTIONS -DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_DIR" -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu
5960
cmake --build "$BUILD_DIR" --parallel 4 --target install
6061
61-
- name: Prepare [functional test]
62-
run: |
63-
echo "ZLIB_SRC_DIR=$HOME/work/zlib" >> $GITHUB_ENV
64-
git clone https://github.com/madler/zlib.git $HOME/work/zlib -b v1.2.11
65-
66-
- name: Execute [functional test]
62+
- name: Run [functional test]
6763
run: |
64+
git clone https://github.com/madler/zlib.git $ZLIB_SRC_DIR -b v1.2.11
6865
mkdir $HOME/work/zlib_compilations && cd $HOME/work/zlib_compilations
6966
bear --help
7067
bear -- $ZLIB_SRC_DIR/configure

test/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lit
2+
pycodestyle

0 commit comments

Comments
 (0)