|
1 | 1 | name: Build Status
|
2 | 2 |
|
| 3 | +env: |
| 4 | + # Run full CI Monday and Thursday at 3:25am EST (08:25 UTC) |
| 5 | + # Note: do not run scheduled jobs on the hour exactly, per: |
| 6 | + # https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule |
| 7 | + # GitHub Actions schedules can sometimes delay by up to 15 minutes due to platform load |
| 8 | + FULL_CI_SCHEDULE: '25 8 * * 1,4' |
| 9 | + |
3 | 10 | on:
|
4 | 11 | push:
|
5 | 12 | branches:
|
|
26 | 33 | required: false
|
27 | 34 | type: boolean
|
28 | 35 | default: false
|
| 36 | + schedule: |
| 37 | + - cron: '25 8 * * 1,4' |
29 | 38 |
|
30 | 39 | concurrency:
|
31 | 40 | group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
60 | 69 |
|
61 | 70 | outputs:
|
62 | 71 | COMMIT_MESSAGE: ${{ steps.setup.outputs.COMMIT_MSG }}
|
63 |
| - FULL_RUN: ${{ steps.setuppush.outputs.FULL_RUN || steps.setuppr.outputs.FULL_RUN || steps.setupmanual.outputs.FULL_RUN }} |
| 72 | + FULL_RUN: ${{ steps.setuppush.outputs.FULL_RUN || steps.setuppr.outputs.FULL_RUN || steps.setupmanual.outputs.FULL_RUN || steps.setupschedule.outputs.FULL_RUN }} |
64 | 73 |
|
65 | 74 | steps:
|
66 | 75 | - name: Checkout
|
@@ -109,6 +118,17 @@ jobs:
|
109 | 118 | env:
|
110 | 119 | FULL_RUN: ${{ github.event.inputs.ci-full }}
|
111 | 120 | if: ${{ github.event_name == 'workflow_dispatch' }}
|
| 121 | + |
| 122 | + - name: Display and Setup Build Args (Schedule) |
| 123 | + id: setupschedule |
| 124 | + run: | |
| 125 | + echo "Commit Message: $COMMIT_MSG" |
| 126 | + echo "Full Run: $FULL_RUN" |
| 127 | + echo "COMMIT_MSG=$COMMIT_MSG" >> $GITHUB_OUTPUT |
| 128 | + echo "FULL_RUN=$FULL_RUN" >> $GITHUB_OUTPUT |
| 129 | + env: |
| 130 | + FULL_RUN: ${{ github.event.schedule == env.FULL_CI_SCHEDULE }} |
| 131 | + if: ${{ github.event_name == 'schedule' }} |
112 | 132 |
|
113 | 133 | ########################################################
|
114 | 134 | #......................................................#
|
@@ -174,7 +194,7 @@ jobs:
|
174 | 194 | matrix:
|
175 | 195 | os:
|
176 | 196 | - ubuntu-24.04 # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
|
177 |
| - - macos-12 # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md |
| 197 | + - macos-13 # https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md |
178 | 198 | - macos-14 # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
|
179 | 199 | - windows-2019 # https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md
|
180 | 200 | python-version:
|
@@ -267,7 +287,7 @@ jobs:
|
267 | 287 |
|
268 | 288 | # avoid unnecessary use of mac resources
|
269 | 289 | - is-full-run: false
|
270 |
| - os: macos-12 |
| 290 | + os: macos-13 |
271 | 291 |
|
272 | 292 | - is-full-run: false
|
273 | 293 | os: macos-14
|
@@ -323,7 +343,7 @@ jobs:
|
323 | 343 | CIBW_ENVIRONMENT_MACOS: CCACHE_DIR="/Users/runner/work/csp/csp/.ccache" VCPKG_DEFAULT_BINARY_CACHE="${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" VCPKG_DOWNLOADS="${{ env.VCPKG_DOWNLOADS }}"
|
324 | 344 | CIBW_ARCHS_MACOS: x86_64
|
325 | 345 | CIBW_BUILD_VERBOSITY: 3
|
326 |
| - if: ${{ matrix.os == 'macos-12' }} |
| 346 | + if: ${{ matrix.os == 'macos-13' }} |
327 | 347 |
|
328 | 348 | - name: Python Build Steps (Macos arm)
|
329 | 349 | run: make dist-py-cibw
|
@@ -439,7 +459,7 @@ jobs:
|
439 | 459 | matrix:
|
440 | 460 | os:
|
441 | 461 | - ubuntu-24.04
|
442 |
| - - macos-12 |
| 462 | + - macos-13 |
443 | 463 | - macos-14
|
444 | 464 | - windows-2019
|
445 | 465 | python-version:
|
@@ -479,7 +499,7 @@ jobs:
|
479 | 499 |
|
480 | 500 | # avoid unnecessary use of mac resources
|
481 | 501 | - is-full-run: false
|
482 |
| - os: macos-12 |
| 502 | + os: macos-13 |
483 | 503 |
|
484 | 504 | - is-full-run: false
|
485 | 505 | os: macos-14
|
|
0 commit comments