-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add Aspect Workflows warming workflows to GitHub Actions (#459)
- Loading branch information
1 parent
08feb34
commit 606ea72
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CI Warming | ||
|
||
# Periodically create archives that have Bazel external folders to restore on new instances, making | ||
# those instances more "warm". | ||
on: | ||
# Allow trigger via UI | ||
workflow_dispatch: | ||
schedule: | ||
# Every 4 hours preceeding working hours | ||
# M-F 8:05, 12:05, 16:05 PDT | ||
- cron: '5 15,19,23 * * 1-5' | ||
|
||
jobs: | ||
warming-archive: | ||
# Note: warming should run an a dedicated runner pool / queue typically named "aspect-default-warming". | ||
runs-on: [self-hosted, aspect-workflows, aspect-aspect-cli-warming] | ||
steps: | ||
- name: Configure environment | ||
run: configure_workflows_env | ||
- uses: actions/checkout@v3 | ||
- name: Agent health checks | ||
run: agent_health_check | ||
- name: Create warming archive for . | ||
uses: ./rosetta/gh-actions | ||
with: | ||
task: warming | ||
workspace: . | ||
- name: Archive warming tars | ||
run: warming_archive |