1 on: [push, pull_request]
9 - name: ubuntu:production
11 config: production --auto-download --all-bindings --editline --docs
15 build-documentation: true
17 binary-name: cvc5-Linux
19 run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
21 - name: macos:production
23 config: production --auto-download --python-bindings --editline
28 binary-name: cvc5-macOS
30 run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
32 - name: win64:production
34 config: production --auto-download --win64
35 cache-key: productionwin64
36 strip-bin: x86_64-w64-mingw32-strip
38 binary-name: cvc5-Win64.exe
41 - name: ubuntu:production-clang
43 env: CC=clang CXX=clang++
44 config: production --auto-download --no-poly
45 cache-key: productionclang
48 run_regression_args: --tester base --tester model --tester synth --tester abduct --tester dump
50 - name: ubuntu:production-dbg
52 config: production --auto-download --assertions --tracing --unit-testing --all-bindings --editline
55 run_regression_args: --tester base --tester model --tester synth --tester abduct --tester proof --tester dump
58 - name: ubuntu:production-dbg-clang
60 env: CC=clang CXX=clang++
61 config: production --auto-download --assertions --tracing --cln --gpl
64 run_regression_args: --tester base --tester model --tester synth --tester abduct --tester unsat-core --tester dump
66 name: ${{ matrix.name }}
67 runs-on: ${{ matrix.os }}
69 # cancel already running jobs for the same branch/pr/tag
71 group: build-${{ github.ref }}-${{ matrix.name }}-${{ github.ref != 'refs/heads/main' || github.run_id }}
72 cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
76 - uses: actions/checkout@v2
78 - name: Install dependencies
79 uses: ./.github/actions/install-dependencies
81 with-documentation: ${{ matrix.build-documentation }}
82 with-python-bindings: ${{ matrix.python-bindings }}
83 windows-build: ${{ matrix.windows-build }}
86 uses: ./.github/actions/setup-cache
88 cache-key: ${{ matrix.cache-key }}
90 - name: Configure and build
91 id: configure-and-build
92 uses: ./.github/actions/configure-and-build
94 configure-env: ${{ matrix.env }}
95 configure-config: ${{ matrix.config }}
96 build-shared: ${{ matrix.build-shared }}
97 build-static: ${{ matrix.build-static }}
98 strip-bin: ${{ matrix.strip-bin }}
100 - name: ccache Statistics
104 if: matrix.run_regression_args
105 uses: ./.github/actions/run-tests
107 build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
108 check-examples: ${{ matrix.check-examples }}
109 check-python-bindings: ${{ matrix.python-bindings }}
110 regressions-args: ${{ matrix.run_regression_args }}
111 regressions-exclude: ${{ matrix.exclude_regress }}
114 if: matrix.run_regression_args
115 uses: ./.github/actions/run-tests
117 build-dir: ${{ steps.configure-and-build.outputs.static-build-dir }}
118 check-examples: false
120 check-python-bindings: false
121 regressions-args: ${{ matrix.run_regression_args }}
122 regressions-exclude: 1-4
124 - name: Build documentation
125 if: matrix.build-documentation
126 uses: ./.github/actions/build-documentation
128 build-dir: ${{ steps.configure-and-build.outputs.shared-build-dir }}
130 - name: Add binary to latest and release
131 if: matrix.binary-name && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
132 uses: ./.github/actions/store-binary
134 binary: ${{ steps.configure-and-build.outputs.static-build-dir }}/bin/cvc5${{ matrix.binary-ext }}
135 binary-name: ${{ matrix.binary-name }}
136 # when using GITHUB_TOKEN, no further workflows are triggered
137 github-token-latest: ${{ secrets.GITHUB_TOKEN }}
138 github-token-release: ${{ secrets.ACTION_USER_TOKEN }}
141 runs-on: ubuntu-latest
142 if: github.repository == 'cvc5/cvc5' && github.event_name == 'push' && github.ref == 'refs/heads/main'
146 - name: Automatically update PR
147 uses: adRise/update-pr-branch@v0.6.0
149 token: ${{ secrets.ACTION_USER_TOKEN }}
153 required_approval_count: 1