From a349759533bc29a5762bb826b03e87536568f1b3 Mon Sep 17 00:00:00 2001 From: Roger Standridge <9526806+archie2x@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:06:39 -0700 Subject: [PATCH] attempt CI tinygo build --- .github/workflows/tinygo.yml | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/tinygo.yml diff --git a/.github/workflows/tinygo.yml b/.github/workflows/tinygo.yml new file mode 100644 index 00000000000..68f48ef20eb --- /dev/null +++ b/.github/workflows/tinygo.yml @@ -0,0 +1,65 @@ +--- +name: TinyGo + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + +env: + + core: | + backoff + base64 + + exp: | + acpicat + + extra: | + tsort + + # core:("backoff" "base64" "basename" "blkid" "brctl" "cat" "chmod" "chroot" + # "cmp" "comm" "cp" "cpio" "date" "dd" "df" "dirname" "dmesg" "du" "echo" + # "false" "find" "free" "fusermount" "gpgv" "gpt" "grep" "gzip" "head" "hexdump" + # "hostname" "hwclock" "id" "kill" "lddfiles" "ln" "losetup" "ls" "lsdrivers" + # "lsmod" "man" "md5sum" "mkdir" "mkfifo" "mknod" "mktemp" "more" "mount" "mv" + # "ntpdate" "pci" "poweroff" "printenv" "ps" "pwd" "readlink" "realpath" "rm" + # "rsdp" "scp" "seq" "shasum" "shutdown" "sleep" "sort" "strace" "strings" + # "stty" "sync" "tail" "tar" "time" "timeout" "touch" "tr" "true" "truncate" + # "ts" "tty" "umount" "uname" "uniq" "unmount" "unshare" "uptime" "watchdog" + # "wc" "which" "xargs" "yes") + + # exp:("acpicat" "acpigrep" "ansi" "bootvars" "bzimage" "cbmem" "crc" + # "disk_unlock" "dmidecode" "dumpebda" "dumpmemmap" "ectool" "ed" "efivarfs" + # "fbsplash" "fdtdump" "field" "fixrsdp" "forth" "freq" "getty" "hdparm" + # "ipmidump" "kconf" "lsfabric" "madeye" "nvme_unlock" "page" "partprobe" "pox" + # "readelf" "readpe" "run" "rush" "smbios_transfer" "smn" "srvfiles" "ssh" + # "syscallfilter" "tac" "tcz" "watch" "zbi" "zimage") + + # extra:("tsort) + + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: acifani/setup-tinygo@v2 + with: + tinygo-version: '0.33.0' + + - name: Build + run: | + + for cmd in ${core[@]} ${exp[@]} ${exp[@]}; do + tinygo build -tags noasm $cmd + done + + - name: Failing + + run: | + + corepat=\($(IFS=\|; echo "${core[*]}")\) + echo ${corepat}