@@ -13,15 +13,21 @@ jobs:
13
13
# cross-platform coverage.
14
14
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
15
15
runs-on : ubuntu-latest
16
- name : Build with ${{ matrix.flags }} flags
16
+ name : Build ${{ matrix.name }}
17
17
strategy :
18
18
matrix :
19
- # Build with these flags
20
- flags : ["-DMARCH_OPT=-march=x86-64"]
19
+ include :
20
+ # Build with these flags
21
+ - name : generic
22
+ container : alpine-dev
23
+ flags : " -DMARCH_OPT=-march=x86-64"
24
+ - name : fedora
25
+ container : fedora:30
26
+
21
27
timeout-minutes : 45
22
28
23
29
container :
24
- image : ghcr.io/romange/alpine-dev:latest
30
+ image : ghcr.io/romange/${{ matrix.container }}
25
31
credentials :
26
32
username : ${{ github.repository_owner }}
27
33
password : ${{ secrets.GITHUB_TOKEN }}
@@ -30,49 +36,19 @@ jobs:
30
36
- uses : actions/checkout@v3
31
37
with :
32
38
submodules : true
33
- - name : Install NodeJs
34
- run : |
35
- apk add --no-cache nodejs npm yarn
36
- node --version
37
- npm --version
38
- yarn --version
39
39
- name : Install dependencies
40
40
run : |
41
- uname -a
42
41
cmake --version
43
42
mkdir -p ${{github.workspace}}/build
44
- - name : Cache build deps
45
- id : cache-deps
46
- uses : actions/cache@v3
47
- with :
48
- path : |
49
- ~/.ccache
50
- ${{github.workspace}}/build/_deps
51
- key : ${{ runner.os }}-deps-${{ github.base_ref }}-${{ github.sha }}
52
- restore-keys : |
53
- ${{ runner.os }}-deps-${{ github.base_ref }}-
54
43
55
- - name : Configure CMake
44
+ - name : Configure & Build
56
45
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
57
46
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
47
+ working-directory : ${{github.workspace}}/build
58
48
run : |
59
- cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{ matrix.flags }}
60
- cd ${{github.workspace}}/build && pwd
61
- du -hcs _deps/
62
- - name : Build & Run
63
- run : |
64
- cd ${{github.workspace}}/build
49
+ cmake .. -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ${{ matrix.flags }}
65
50
ninja src/all
66
- ccache --show-stats
67
- ./dragonfly --alsologtostderr --default_lua_flags=allow-undeclared-keys &
68
- - name : Clone and build BullMQ
69
- run : |
70
- cd ${{github.workspace}}
71
- git clone https://github.com/taskforcesh/bullmq.git
72
- cd bullmq
73
- yarn install --ignore-engines --frozen-lockfile --non-interactive
74
- yarn build
75
- - name : Test BullMQ with dragonfly
51
+ - name : Test
52
+ working-directory : ${{github.workspace}}/build
76
53
run : |
77
- cd ${{github.workspace}}/bullmq
78
- # yarn test -i -g "should process delayed jobs with several workers respecting delay"
54
+ ctest -V -L DFLY
0 commit comments