Skip to content

Commit

Permalink
re-oganize example pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Aug 1, 2024
1 parent f8f553b commit c1cc18f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 70 deletions.
95 changes: 26 additions & 69 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,31 @@ name: example

on:
push:
branches: ["main"]
branches: [main]

jobs:
anyflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/anyflow && ./build.sh

depend-use-bzlmod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/depend-use-bzlmod && ./build.sh

depend-use-cmake-fetch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/depend-use-cmake-fetch && ./build.sh

depend-use-cmake-find:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt install libabsl-dev
- run: sudo apt install libboost-all-dev
- run: sudo apt install libprotobuf-dev
- run: cd example/depend-use-cmake-find && ./build.sh

depend-use-cmake-subdir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/depend-use-cmake-subdir && ./build.sh

depend-use-workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/depend-use-workspace && ./build.sh

use-arena-with-brpc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/use-arena-with-brpc && ./build.sh

use-async-logger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/use-async-logger && ./build.sh

use-counter-with-bvar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/use-counter-with-bvar && ./build.sh

use-with-bthread:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/use-with-bthread && ./build.sh

use-with-glog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cd example/use-with-glog && ./build.sh
basic:
strategy:
matrix:
name:
- anyflow
- depend-use-bzlmod
- depend-use-cmake-fetch
- depend-use-cmake-find
- depend-use-cmake-subdir
- depend-use-workspace
- use-arena-with-brpc
- use-async-logger
- use-counter-with-bvar
- use-with-bthread
- use-with-glog
runs-on: ubuntu-latest
name: ${{matrix.name}}
steps:
- uses: actions/checkout@v4
- if: ${{matrix.name == 'depend-use-cmake-find'}}
run: |
sudo apt install libabsl-dev
sudo apt install libboost-all-dev
sudo apt install libprotobuf-dev
- run: cd example/${{matrix.name}} && ./build.sh
2 changes: 1 addition & 1 deletion test/test_mlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ TEST_F(MemoryLockerTest, lock_regions_after_start) {
ASSERT_EQ(0, MemoryLocker::instance().stop());
}

#if __x86_64__
#if __x86_64__
TEST_F(MemoryLockerTest, unlock_regions_after_stop) {
ASSERT_EQ(0, MemoryLocker::instance().start());
next_round();
Expand Down

0 comments on commit c1cc18f

Please sign in to comment.