-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.49 KB
/
make-sandwich.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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