From fe3d0f56da94cf67ce41183967a01b2a6d842cf3 Mon Sep 17 00:00:00 2001 From: "Jesse L. Zamora" Date: Mon, 23 Dec 2024 20:35:45 -0500 Subject: [PATCH] Add schedule for nightly, remove sysroot caching --- .../actions/build-for-distribution/action.yml | 1 - .github/actions/build-with-sysroot/action.yml | 19 +------------------ .github/workflows/build-swift-nightly.yml | 5 ++--- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/actions/build-for-distribution/action.yml b/.github/actions/build-for-distribution/action.yml index e95026e..9e21f70 100644 --- a/.github/actions/build-for-distribution/action.yml +++ b/.github/actions/build-for-distribution/action.yml @@ -28,7 +28,6 @@ runs: with: swift-tag: ${{ inputs.swift-tag }} swift-workspace-cache: ${{ inputs.swift-workspace-cache }} - sysroot-id: sysroot-${{ inputs.distribution }} sysroot-name: sysroot-${{ inputs.distribution }}-armv7 distribution: ${{ inputs.distribution }} builder-tag: ${{ inputs.builder-tag }} diff --git a/.github/actions/build-with-sysroot/action.yml b/.github/actions/build-with-sysroot/action.yml index 5b910e2..048f55e 100644 --- a/.github/actions/build-with-sysroot/action.yml +++ b/.github/actions/build-with-sysroot/action.yml @@ -7,9 +7,6 @@ inputs: swift-workspace-cache: description: The name of the Swift workspace directory to restore required: true - sysroot-id: - description: The sysroot ID to use when caching and publishing - required: true sysroot-name: description: The name of the sysroot to use to build Swift required: true @@ -22,14 +19,7 @@ inputs: runs: using: "composite" steps: - - name: Restore Sysroot - id: restore-sysroot - uses: actions/cache/restore@v4 - with: - key: ${{ inputs.sysroot-id }} - path: ${{ inputs.sysroot-name }} - - if: ${{ steps.restore-sysroot.outputs.cache-hit != 'true' }} - name: Build + - name: Build shell: bash env: DISTRIBUTION: ${{ inputs.distribution }} @@ -37,13 +27,6 @@ runs: - name: Compress shell: bash run: tar -czf ${{ inputs.sysroot-name }}.tar.gz ${{ inputs.sysroot-name }} - - name: Cache Sysroot - id: cache-sysroot - if: steps.restore-sysroot.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 - with: - key: ${{ inputs.sysroot-id }} - path: ${{ inputs.sysroot-name }} - name: Build Swift shell: bash run: | diff --git a/.github/workflows/build-swift-nightly.yml b/.github/workflows/build-swift-nightly.yml index 88e53fa..7801f7a 100644 --- a/.github/workflows/build-swift-nightly.yml +++ b/.github/workflows/build-swift-nightly.yml @@ -1,10 +1,9 @@ name: Build Swift Nightly on: - push: - branches: [ "feature/swift-6.1" ] pull_request: - branches: [ "main" ] + schedule: + - cron: '0 21 * * *' env: DISTRIBUTION: debian-bookworm