Skip to content

Commit

Permalink
remove repo cache in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed May 31, 2024
1 parent 0af0fd7 commit 21b834d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 91 deletions.
100 changes: 10 additions & 90 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,77 +11,45 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-basic-asan-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-basic-asan-
bazel-disk-
restore-keys: bazel-disk-gcc12-basic-asan-
- run: bazel test --config=ci --action_env=CC=gcc-12 --features=asan test/...

gcc12-basic-tsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-basic-tsan-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-basic-tsan-
bazel-disk-
restore-keys: bazel-disk-gcc12-basic-tsan-
- run: bazel test --config=ci --action_env=CC=gcc-12 --features=tsan test/...

gcc12-arenastring-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-arenastring-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-arenastring-
bazel-disk-
restore-keys: bazel-disk-gcc12-arenastring-
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '25.3.arenastring'/" MODULE.bazel
- run: bazel test --config=ci --action_env=CC=gcc-12 --config=arenastring --features=asan test/...

gcc12-mutable-donated-string-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-mutable-donated-string-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-mutable-donated-string-
bazel-disk-
restore-keys: bazel-disk-gcc12-mutable-donated-string-
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '25.3.arenastring'/" MODULE.bazel
- run: bazel test --config=ci --action_env=CC=gcc-12 --config=mutable-donated-string --features=asan test/...

Expand All @@ -100,77 +68,45 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-basic-asan-${{github.sha}}
restore-keys: |
bazel-disk-clang14-basic-asan-
bazel-disk-
restore-keys: bazel-disk-clang14-basic-asan-
- run: bazel test --config=ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --features=asan test/...

clang14-basic-tsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-basic-tsan-${{github.sha}}
restore-keys: |
bazel-disk-clang14-basic-tsan-
bazel-disk-
restore-keys: bazel-disk-clang14-basic-tsan-
- run: bazel test --config=ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --features=tsan test/...

clang14-arenastring-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-arenastring-${{github.sha}}
restore-keys: |
bazel-disk-clang14-arenastring-
bazel-disk-
restore-keys: bazel-disk-clang14-arenastring-
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '25.3.arenastring'/" MODULE.bazel
- run: bazel test --config=ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config=arenastring --features=asan test/...

clang14-mutable-donated-string-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-mutable-donated-string-${{github.sha}}
restore-keys: |
bazel-disk-clang14-mutable-donated-string-
bazel-disk-
restore-keys: bazel-disk-clang14-mutable-donated-string-
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '25.3.arenastring'/" MODULE.bazel
- run: bazel test --config=ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config=mutable-donated-string --features=asan test/...

Expand All @@ -189,19 +125,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-aarch64-asan-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-aarch64-asan-
bazel-disk-
restore-keys: bazel-disk-gcc12-aarch64-asan-
- run: sudo apt install g++-12-aarch64-linux-gnu
- run: sudo apt install qemu-user
- run: sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 /lib/
Expand All @@ -211,19 +139,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('MODULE.bazel')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-coverage-${{github.sha}}
restore-keys: |
bazel-disk-coverage-
bazel-disk-
restore-keys: bazel-disk-coverage-
- run: bazel coverage --config=ci --combined_report=lcov --instrumentation_filter='src/babylon,-src/babylon/reusable/patch' test/...
- run: ln -s _coverage_report.dat bazel-out/_coverage/_coverage_report.lcov
- uses: coverallsapp/github-action@v2
Expand Down
2 changes: 1 addition & 1 deletion src/babylon/anyflow/builtin/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Operator {
protected:
using GetOperandFunction =
const Any& (*)(size_t index, const ::std::vector<Any>& variables,
const ::std::vector<Any>& constants) noexcept;
const ::std::vector<Any>& constants);

static const Any& get_operand_from_variables(
size_t index, const ::std::vector<Any>& variables,
Expand Down

0 comments on commit 21b834d

Please sign in to comment.