mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
.builds: fix apple.yml again
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-1
@@ -16,7 +16,7 @@ sources:
|
|||||||
- https://github.com/tpoechtrager/apple-libtapi.git
|
- https://github.com/tpoechtrager/apple-libtapi.git
|
||||||
environment:
|
environment:
|
||||||
APPLE_TOOLCHAIN_ROOT: /home/build/appletools
|
APPLE_TOOLCHAIN_ROOT: /home/build/appletools
|
||||||
PATH: /home/build/goroot/go/bin:/home/build/go/bin:/home/build/appletools/bin:/usr/bin:$PATH
|
PATH: /home/build/goroot/go/bin:/home/build/go/bin:/usr/bin:$PATH
|
||||||
secrets:
|
secrets:
|
||||||
- 6363dfe0-15d9-4bd2-88a5-ae53243568c9
|
- 6363dfe0-15d9-4bd2-88a5-ae53243568c9
|
||||||
tasks:
|
tasks:
|
||||||
@@ -56,7 +56,9 @@ tasks:
|
|||||||
go build -o $APPLE_TOOLCHAIN_ROOT/tools ./cmd/appletoolchain
|
go build -o $APPLE_TOOLCHAIN_ROOT/tools ./cmd/appletoolchain
|
||||||
- test_macos: |
|
- test_macos: |
|
||||||
cd gio/example
|
cd gio/example
|
||||||
|
export PATH=/home/build/appletools/bin:$PATH
|
||||||
CC=$APPLE_TOOLCHAIN_ROOT/tools/clang-macos CGO_CFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/MacOSX.sdk -arch x86_64" CGO_LDFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/MacOSX.sdk -arch x86_64" GOOS=darwin CGO_ENABLED=1 go build -o /dev/null ./kitchen
|
CC=$APPLE_TOOLCHAIN_ROOT/tools/clang-macos CGO_CFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/MacOSX.sdk -arch x86_64" CGO_LDFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/MacOSX.sdk -arch x86_64" GOOS=darwin CGO_ENABLED=1 go build -o /dev/null ./kitchen
|
||||||
- test_ios: |
|
- test_ios: |
|
||||||
cd gio/example
|
cd gio/example
|
||||||
|
export PATH=/home/build/appletools/bin:$PATH
|
||||||
gogio -target ios -o app.app ./kitchen
|
gogio -target ios -o app.app ./kitchen
|
||||||
|
|||||||
Reference in New Issue
Block a user