From 6d7c27cd5bebb76cc14c7f10a0841d424b09e3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Mon, 16 Mar 2026 13:01:46 +0100 Subject: [PATCH 1/2] ci: add enterprise license to the secure CI jobs --- .github/workflows/performance_score_director.yml | 3 +++ .github/workflows/turtle.yml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/performance_score_director.yml b/.github/workflows/performance_score_director.yml index cd01a850..4b31c15e 100644 --- a/.github/workflows/performance_score_director.yml +++ b/.github/workflows/performance_score_director.yml @@ -18,6 +18,9 @@ name: ScoreDirector Perf Regression Test permissions: contents: read +env: + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} + on: workflow_dispatch: inputs: diff --git a/.github/workflows/turtle.yml b/.github/workflows/turtle.yml index 33f29928..083baba7 100644 --- a/.github/workflows/turtle.yml +++ b/.github/workflows/turtle.yml @@ -4,6 +4,9 @@ on: schedule: - cron: '0 3 * * *' # Every day at 3am UTC +env: + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} + jobs: test: concurrency: @@ -12,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - example: [cloudbalancing, conferencescheduling, curriculumcourse, examination, machinereassignment, meetingscheduling, nurserostering, pas, taskassigning, travelingtournament, tsp, vehiclerouting] + example: [cloudbalancing, conferencescheduling, curriculumcourse, examination, flow_shop, machinereassignment, meetingscheduling, nurserostering, pas, taskassigning, travelingtournament, tsp, vehiclerouting] steps: # Clone timefold-solver - name: Checkout timefold-solver From f2e091c46a22812fac63079236652c6c69b03ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Mon, 16 Mar 2026 16:55:52 +0100 Subject: [PATCH 2/2] restrict licenses --- .github/workflows/performance_score_director.yml | 9 ++++----- .github/workflows/pull_request.yml | 2 ++ .github/workflows/turtle.yml | 5 ++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/performance_score_director.yml b/.github/workflows/performance_score_director.yml index 4b31c15e..9ee99753 100644 --- a/.github/workflows/performance_score_director.yml +++ b/.github/workflows/performance_score_director.yml @@ -18,9 +18,6 @@ name: ScoreDirector Perf Regression Test permissions: contents: read -env: - TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} - on: workflow_dispatch: inputs: @@ -298,9 +295,10 @@ jobs: - name: (Baseline) Run the benchmark working-directory: ./timefold-solver-benchmarks id: benchmark_baseline + shell: bash env: RUN_ID: ${{ env.BASELINE_DIR }} - shell: bash + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} run: | mkdir target cp benchmarks-baseline.jar target/benchmarks.jar @@ -319,9 +317,10 @@ jobs: - name: (SUT) Run the benchmark id: benchmark_sut working-directory: ./timefold-solver-benchmarks + shell: bash env: RUN_ID: ${{ env.SUT_DIR }} - shell: bash + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} run: | rm target/benchmarks.jar cp benchmarks-sut.jar target/benchmarks.jar diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1e830782..19edf94e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -125,4 +125,6 @@ jobs: - name: Build and test timefold-solver-benchmarks working-directory: ./timefold-solver-benchmarks shell: bash + env: + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} run: ./mvnw -B clean verify diff --git a/.github/workflows/turtle.yml b/.github/workflows/turtle.yml index 083baba7..0104f9a1 100644 --- a/.github/workflows/turtle.yml +++ b/.github/workflows/turtle.yml @@ -4,9 +4,6 @@ on: schedule: - cron: '0 3 * * *' # Every day at 3am UTC -env: - TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} - jobs: test: concurrency: @@ -57,4 +54,6 @@ jobs: - name: Run and test timefold-solver-benchmarks per example working-directory: ./timefold-solver-benchmarks shell: bash + env: + TIMEFOLD_ENTERPRISE_LICENSE: ${{ secrets.TIMEFOLD_SOLVER_CI_PROD_LICENSE }} run: ./mvnw -B -Dai.timefold.solver.benchmarks.examples.turtle=${{matrix.example}} -Dai.timefold.solver.benchmarks.examples.turtle.runTimeLimitMinutes=300 test