Fix missing force-build, use non-docker publish action, be nice to cache (#11688)

* Fix missing force-build and use non-docker publish action

Fixes #11687
Fixes #10404

* Initial deletion of build_check_cache

Start to fold functionality into build_deps, but definitely broken.

* Tests can be built separately

Missed this before

* Create artifact for all platforms, fix cache usage

Cache is only created on `main` branch.
Artifact is used to move files between jobs.
The Linux artifact was broken, now it's not.
The Mac artifact didn't exist, now it does.
The Windows artifact gets a new name and now isn't a
zip-within-a-zip. Perhaps this will cause a permissions problem; we
will see shortly.

* Apparently cannot update env used for `if` mid-stream

* Force-build causes a clean deps build

* Either build or pull from cache

Cache only has final output, not intermediate files. So we either
build or use the cache.

* Keep dep uploads for 10 days instead

It's just the final object outputs, not intermediates, so it's not as
large and we can keep it slightly longer.
This commit is contained in:
coryrc
2025-12-27 05:14:55 -08:00
committed by GitHub
parent 1ca20469d7
commit 8989e2102d
5 changed files with 51 additions and 128 deletions

View File

@@ -1,10 +1,10 @@
on:
workflow_call:
inputs:
cache-key:
artifact-name:
required: true
type: string
cache-path:
artifact-path:
required: true
type: string
os:
@@ -30,12 +30,11 @@ jobs:
with:
lfs: 'true'
- name: load cached deps
uses: actions/cache@v4
- name: Download deps artifacts
uses: actions/download-artifact@v4
with:
path: ${{ inputs.cache-path }}
key: ${{ inputs.cache-key }}
fail-on-cache-miss: true
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
- uses: lukka/get-cmake@latest
with: