mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Reapply "Add a once-daily Build All which skips caches (#10731)"
This reverts commit e3f049829b.
This commit is contained in:
4
.github/workflows/build_all.yml
vendored
4
.github/workflows/build_all.yml
vendored
@@ -30,6 +30,9 @@ on:
|
|||||||
- 'build_release_macos.sh'
|
- 'build_release_macos.sh'
|
||||||
- 'scripts/flatpak/**'
|
- 'scripts/flatpak/**'
|
||||||
|
|
||||||
|
schedule:
|
||||||
|
- cron: '0 17 * * *' # run once a day at 1 AM Singapore time (UTC+8)
|
||||||
|
|
||||||
workflow_dispatch: # allows for manual dispatch
|
workflow_dispatch: # allows for manual dispatch
|
||||||
inputs:
|
inputs:
|
||||||
build-deps-only:
|
build-deps-only:
|
||||||
@@ -60,6 +63,7 @@ jobs:
|
|||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
build-deps-only: ${{ inputs.build-deps-only || false }}
|
build-deps-only: ${{ inputs.build-deps-only || false }}
|
||||||
|
force-build: ${{ github.event_name == 'schedule' }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
flatpak:
|
flatpak:
|
||||||
name: "Flatpak"
|
name: "Flatpak"
|
||||||
|
|||||||
4
.github/workflows/build_check_cache.yml
vendored
4
.github/workflows/build_check_cache.yml
vendored
@@ -12,6 +12,9 @@ on:
|
|||||||
build-deps-only:
|
build-deps-only:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
force-build:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_cache: # determines if there is a cache and outputs variables used in caching process
|
check_cache: # determines if there is a cache and outputs variables used in caching process
|
||||||
@@ -55,4 +58,5 @@ jobs:
|
|||||||
os: ${{ inputs.os }}
|
os: ${{ inputs.os }}
|
||||||
arch: ${{ inputs.arch }}
|
arch: ${{ inputs.arch }}
|
||||||
build-deps-only: ${{ inputs.build-deps-only }}
|
build-deps-only: ${{ inputs.build-deps-only }}
|
||||||
|
force-build: ${{ inputs.force-build }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
7
.github/workflows/build_deps.yml
vendored
7
.github/workflows/build_deps.yml
vendored
@@ -19,11 +19,14 @@ on:
|
|||||||
build-deps-only:
|
build-deps-only:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
force-build:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_deps:
|
build_deps:
|
||||||
name: Build Deps
|
name: Build Deps
|
||||||
if: inputs.build-deps-only || inputs.valid-cache != true
|
if: inputs.build-deps-only || inputs.force-build || inputs.valid-cache != true
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
env:
|
env:
|
||||||
date:
|
date:
|
||||||
@@ -139,7 +142,7 @@ jobs:
|
|||||||
build_orca:
|
build_orca:
|
||||||
name: Build OrcaSlicer
|
name: Build OrcaSlicer
|
||||||
needs: [build_deps]
|
needs: [build_deps]
|
||||||
if: ${{ !cancelled() && !inputs.build-deps-only && (inputs.valid-cache == true && needs.build_deps.result == 'skipped') || (inputs.valid-cache != true && success()) }}
|
if: ${{ !cancelled() && !inputs.build-deps-only && inputs.force-build || (inputs.valid-cache == true && needs.build_deps.result == 'skipped') || (inputs.valid-cache != true && success()) }}
|
||||||
uses: ./.github/workflows/build_orca.yml
|
uses: ./.github/workflows/build_orca.yml
|
||||||
with:
|
with:
|
||||||
cache-key: ${{ inputs.cache-key }}
|
cache-key: ${{ inputs.cache-key }}
|
||||||
|
|||||||
Reference in New Issue
Block a user