forked from u-root/u-root
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (51 loc) · 1.3 KB
/
tinygo.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: TinyGo
on:
push:
branches: ["main", "tinygo-ci"]
pull_request:
branches: [main]
env:
core: |
backoff
base64
exp: |
acpicat
extra: |
tsort
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up TinyGo
uses: acifani/setup-tinygo@v2
with:
tinygo-version: '0.33.0'
- name: Build
run: |
# coreglob=cmds/core/{$(IFS=,; echo "${core[*]}")}
# explob=cmds/exp/{$(IFS=,; echo "${exp[*]}")}
# extglob=cmds/exp/{$(IFS=,; echo "${extra[*]}")}
coreA=()
while IFS= read -r line; do
coreA+=("cmds/core/$line")
done <<< "$core"
for item in "${coreA[@]}"; do
echo "Item: $item"
done
# echo ${coreglob}
coreA=(${{ toJson(env.core) }})
echo ${coreA[@]}
echo ${coreA[*]}
for cmd in "${coreA[@]}" ; do
# see tinygo-org/tinygo#4422 for '-C'
# consider '-o /dev/null' to keep tree clean
echo ${cmd}
(cd ${cmd} && tinygo build -tags noasm)
done
- name: Failing
run: |
corepat=\($(IFS=\|; echo "${core[*]}")\)
echo ${corepat}