ci: switch to GitHub-hosted runners and add daily cache-warming build

- Runners: ubuntu-24.04, macos-15, windows-latest (free tier) instead
  of WarpBuild 8x/12x instances
- openfx-misc parallelism adapts to nproc (GitHub runners have fewer
  vCPUs than the WarpBuild instances)
- Schedule a daily 03:17 UTC run so ccache entries never hit GitHub's
  7-day cache expiry and system dependencies stay current
This commit is contained in:
2026-07-18 14:29:14 +08:00
parent 4eb0ef6fc6
commit ca68005fc2
+5 -2
View File
@@ -3,6 +3,9 @@ name: CI
on: on:
push: push:
pull_request: pull_request:
schedule:
# Daily at 03:17 UTC to keep ccache/dependency caches warm
- cron: '17 3 * * *'
jobs: jobs:
build-test: build-test:
@@ -10,7 +13,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [warp-ubuntu-latest-x64-8x, warp-macos-15-arm64-12x, warp-windows-latest-x64-8x] os: [ubuntu-24.04, macos-15, windows-latest]
env: env:
CMAKE_BUILD_TYPE: Release CMAKE_BUILD_TYPE: Release
CCACHE_DIR: ${{ github.workspace }}/.ccache CCACHE_DIR: ${{ github.workspace }}/.ccache
@@ -180,7 +183,7 @@ jobs:
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: | run: |
cd openfx-misc cd openfx-misc
make -j8 make -j"$(nproc)"
sudo make install sudo make install
PLUGIN_FILE=$(find /usr/OFX/Plugins /usr/local/OFX/Plugins . -name "*.ofx.bundle" -print -quit 2>/dev/null | head -1) PLUGIN_FILE=$(find /usr/OFX/Plugins /usr/local/OFX/Plugins . -name "*.ofx.bundle" -print -quit 2>/dev/null | head -1)
if [ -n "$PLUGIN_FILE" ]; then if [ -n "$PLUGIN_FILE" ]; then