make-sandwich #227
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
name: 'make-sandwich' | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
# Run everyday at 3 AM UTC | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
jobs: | |
build_toolchain_parts: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
path: toolchain-autobuilds | |
- uses: actions/checkout@v4 | |
with: | |
ref: past-builds | |
path: past-builds | |
- name: build | |
run: | | |
# prepare env ######################################################## | |
BASE_DIR=$( pwd ) | |
TOOLS_DIR="${BASE_DIR}/toolchain-autobuilds/tools" | |
CONFIG_DIR="${BASE_DIR}/toolchain-autobuilds/config" | |
PAST_BUILDS="${BASE_DIR}/past-builds" | |
SNAPSHOTS="${BASE_DIR}/snapshots" | |
T2_TEMPLATE_BASE_DIR="${BASE_DIR}/toolchain-autobuilds/config/t2" | |
T2_ROOT="${BASE_DIR}/t2-minimal" | |
BUILD_LOGS="${BASE_DIR}/build-logs" | |
export TOOLS_DIR CONFIG_DIR PAST_BUILDS SNAPSHOTS T2_TEMPLATE_BASE_DIR T2_ROOT BUILD_LOGS | |
PATH=${TOOLS_DIR}:${PATH} | |
# run build ########################################################## | |
workflow.bash | |
# exports ############################################################ | |
echo "BUILD_LOGS=${BUILD_LOGS}" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-logs | |
path: ${{ env.BUILD_LOGS }}/ | |
compression-level: 9 |