Skip to content

Commit

Permalink
Add schedule for nightly, remove sysroot caching
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Dec 24, 2024
1 parent c8da321 commit fe3d0f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/actions/build-for-distribution/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 1 addition & 18 deletions .github/actions/build-with-sysroot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -22,28 +19,14 @@ 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 }}
run: ./build-sysroot.sh `echo ${DISTRIBUTION/-/:}` ${{ inputs.sysroot-name }}
- 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: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build-swift-nightly.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fe3d0f5

Please sign in to comment.