diff --git a/.github/workflows/targets.yml b/.github/workflows/targets.yml index 9e0de890..c87eefc7 100644 --- a/.github/workflows/targets.yml +++ b/.github/workflows/targets.yml @@ -36,5 +36,5 @@ jobs: - name: Build targets run: | - cd _demo/empty + cd _demo/targetsbuild bash build-targets-ci.sh diff --git a/_demo/empty/empty.go b/_demo/empty/empty.go deleted file mode 100644 index b2e977f5..00000000 --- a/_demo/empty/empty.go +++ /dev/null @@ -1,6 +0,0 @@ -package main - -import _ "github.com/goplus/llgo/_demo/empty/C" - -func main() { -} diff --git a/_demo/empty/C/c.go b/_demo/targetsbuild/C/c.go similarity index 100% rename from _demo/empty/C/c.go rename to _demo/targetsbuild/C/c.go diff --git a/_demo/empty/build-targets-ci.sh b/_demo/targetsbuild/build-targets-ci.sh similarity index 95% rename from _demo/empty/build-targets-ci.sh rename to _demo/targetsbuild/build-targets-ci.sh index 40c79153..02a847ba 100644 --- a/_demo/empty/build-targets-ci.sh +++ b/_demo/targetsbuild/build-targets-ci.sh @@ -134,10 +134,11 @@ wioterminal \ xiao-esp32c3 \ xiao-rp2040 \ xiao; do - ../../llgo.sh build -v -target $target -o hello.out . >/dev/null 2>&1 + output=$(../../llgo.sh build -v -target $target -o hello.out . 2>&1) if [ $? -eq 0 ]; then echo ✅ $target `file hello.out` else echo ❌ $target + echo "$output" fi done diff --git a/_demo/targetsbuild/empty.go b/_demo/targetsbuild/empty.go new file mode 100644 index 00000000..71be2ff7 --- /dev/null +++ b/_demo/targetsbuild/empty.go @@ -0,0 +1,6 @@ +package main + +import _ "github.com/goplus/llgo/_demo/targetsbuild/C" + +func main() { +}