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: 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[*]}")} | |
# echo ${coreglob} | |
for cmd in "${core[@]/#/cmds\/core\/}" ; do | |
# see tinygo-org/tinygo#4422 for '-C' | |
# consider '-o /dev/null' to keep tree clean | |
(cd ${cmd} && tinygo build -tags noasm) | |
done | |
- name: Failing | |
run: | | |
corepat=\($(IFS=\|; echo "${core[*]}")\) | |
echo ${corepat} |