|
21 | 21 | required: false
|
22 | 22 | type: string
|
23 | 23 | default: "60m"
|
| 24 | + epoll: |
| 25 | + description: "Force epoll mode in test" |
| 26 | + required: false |
| 27 | + type: string |
| 28 | + default: "no" |
| 29 | + use_release: |
| 30 | + description: "Use latest release instead of building dragonfly" |
| 31 | + required: false |
| 32 | + type: string |
| 33 | + default: "no" |
24 | 34 |
|
25 | 35 | jobs:
|
26 | 36 | build:
|
@@ -52,15 +62,24 @@ jobs:
|
52 | 62 | env
|
53 | 63 |
|
54 | 64 | - name: Configure & Build
|
| 65 | + shell: bash |
55 | 66 | run: |
|
56 |
| - # -no-pie to disable address randomization so we could symbolize stacktraces |
57 |
| - cmake -B ${GITHUB_WORKSPACE}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -GNinja \ |
58 |
| - -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DPRINT_STACKTRACES_ON_SIGNAL=ON \ |
59 |
| - -DCMAKE_CXX_FLAGS=-no-pie -DHELIO_STACK_CHECK:STRING=4096 |
60 |
| -
|
61 |
| - cd ${GITHUB_WORKSPACE}/build && ninja dragonfly |
62 |
| - pwd |
63 |
| - ls -l .. |
| 67 | + if [[ "${{ inputs.use_release }}" == "yes" ]]; then |
| 68 | + mkdir "${GITHUB_WORKSPACE}"/build |
| 69 | + cd "${GITHUB_WORKSPACE}"/build |
| 70 | + wget -q https://github.com/dragonflydb/dragonfly/releases/latest/download/dragonfly-x86_64.tar.gz |
| 71 | + tar xf dragonfly-x86_64.tar.gz |
| 72 | + mv dragonfly-x86_64 dragonfly |
| 73 | + ls -l |
| 74 | + else |
| 75 | + # -no-pie to disable address randomization so we could symbolize stacktraces |
| 76 | + cmake -B ${GITHUB_WORKSPACE}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -GNinja \ |
| 77 | + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DPRINT_STACKTRACES_ON_SIGNAL=ON \ |
| 78 | + -DCMAKE_CXX_FLAGS=-no-pie -DHELIO_STACK_CHECK:STRING=4096 |
| 79 | + cd ${GITHUB_WORKSPACE}/build && ninja dragonfly |
| 80 | + pwd |
| 81 | + ls -l .. |
| 82 | + fi |
64 | 83 |
|
65 | 84 | - name: Run tests on repeat
|
66 | 85 | uses: ./.github/actions/repeat
|
|
74 | 93 | expression: ${{ inputs.expression }}
|
75 | 94 | count: ${{ inputs.count }}
|
76 | 95 | timeout: ${{ inputs.timeout }}
|
| 96 | + epoll: ${{ inputs.epoll }} |
77 | 97 |
|
78 | 98 | - name: Upload logs on failure
|
79 | 99 | if: failure()
|
|
0 commit comments