Skip to content

Commit

Permalink
ci: Enable conditional SAT solving (#1177)
Browse files Browse the repository at this point in the history
* Add conditional SAT dependency solving to a new daily job.

closes: #1174
  • Loading branch information
AlejandroCabeza authored Sep 2, 2024
1 parent a1811e7 commit 70754cd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/daily_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
required: false
type: string
default: "[]"
use_sat_solver:
description: 'Install dependencies with SAT Solver'
required: false
type: boolean
default: false

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -86,4 +91,12 @@ jobs:
run: |
nim --version
nimble --version
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }}" nimble test
if [[ "${{ inputs.use_sat_solver }}" == "true" ]]; then
dependency_solver="sat"
else
dependency_solver="legacy"
fi
NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }} --solver:${dependency_solver}"
nimble test
15 changes: 15 additions & 0 deletions .github/workflows/daily_sat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Daily SAT

on:
schedule:
- cron: "30 6 * * *"
workflow_dispatch:

jobs:
test_amd64:
name: Daily SAT
uses: ./.github/workflows/daily_common.yml
with:
nim: "[{'branch': 'version-2-0', 'memory_management': 'refc'}]"
cpu: "['amd64']"
use_sat_solver: true

0 comments on commit 70754cd

Please sign in to comment.