Skip to content

Commit

Permalink
Add workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-mnemonic committed Jun 25, 2024
1 parent e71aa25 commit b7c599f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/make-sandwich.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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: |
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"
export TOOLS_DIR CONFIG_DIR PAST_BUILDS SNAPSHOTS T2_TEMPLATE_BASE_DIR T2_ROOT
PATH=${TOOLS_DIR}:${PATH}
workflow.bash

0 comments on commit b7c599f

Please sign in to comment.