-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (55 loc) · 1.7 KB
/
memcached_benchmark.yml
File metadata and controls
62 lines (55 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: memcached_benchmark
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
changes:
if: github.repository == 'rex-rs/rex'
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
bench: ${{ steps.filter.outputs.bench }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
bench:
- 'tools/memcached_benchmark/**'
build:
needs: changes
if: ${{ needs.changes.outputs.bench == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tools/memcached_benchmark
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
filters: |
bench:
- 'tools/memcached_benchmark/**'
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
- uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16
with:
name: devenv
- name: Install devenv.sh
run: nix profile install nixpkgs#devenv
- name: Build the devenv shell and run any pre-commit hooks
run: devenv test
- name: Build
shell: devenv shell bash -- -e {0}
run: |
cargo fmt --check --verbose
cargo build -r --verbose
- name: Run tests
shell: devenv shell bash -- -e {0}
run: |
cargo test --verbose
cargo test -r --verbose