Weekly #48
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
# This is basically a duplicate of the main "build" workflow, but uses GOPROXY=direct | |
# to try to catch errors close to their introduction due to yanked Go modules. These | |
# could otherwise be covered up by caching and not discovered until much later when | |
# bypassing the main cache. | |
name: Weekly | |
on: | |
schedule: | |
# Run Monday at 02:15 UTC. Randomly chosen as a "quiet" time for this to run. | |
# See syntax for format details: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule | |
- cron: '15 2 * * 1' | |
env: | |
# When Go packages are built, buildsys will vendor in dependent Go code for | |
# that package and bundle it up in a tarball. This env variable is consumed | |
# and used to configure Go to directly download code from its upstream source. | |
# This is a useful early signal during GitHub actions to see if there are | |
# upstream Go code problems. | |
GOPROXY: direct | |
jobs: | |
build: | |
if: github.repository == 'bottlerocket-os/bottlerocket' | |
runs-on: | |
group: bottlerocket | |
labels: bottlerocket_ubuntu-latest_32-core | |
continue-on-error: false | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
fail-fast: false | |
name: "Build ${{ matrix.arch }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Preflight step to set up the runner | |
uses: ./.github/actions/setup-node | |
- run: | | |
cargo make -e \ | |
-e BUILDSYS_ARCH=${{ matrix.arch }} \ | |
-e BUILDSYS_JOBS=12 \ | |
build-all |