mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
.builds: prepare for splitting out examples in separate repository
The example module is moving to git.sr.ht/~eliasnaur/gio-example. We still need some main package for testing gogio, so update reference to use the module path (gioui.org/example). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+11
-7
@@ -37,9 +37,6 @@ tasks:
|
|||||||
cd ../tools
|
cd ../tools
|
||||||
ln -s appletoolchain clang-ios
|
ln -s appletoolchain clang-ios
|
||||||
ln -s appletoolchain clang-macos
|
ln -s appletoolchain clang-macos
|
||||||
- install_gogio: |
|
|
||||||
cd gio/cmd
|
|
||||||
go install ./gogio
|
|
||||||
- install_appletoolchain: |
|
- install_appletoolchain: |
|
||||||
cd giouiorg
|
cd giouiorg
|
||||||
go build -o $APPLE_TOOLCHAIN_ROOT/tools ./cmd/appletoolchain
|
go build -o $APPLE_TOOLCHAIN_ROOT/tools ./cmd/appletoolchain
|
||||||
@@ -57,12 +54,19 @@ tasks:
|
|||||||
./configure --prefix $APPLE_TOOLCHAIN_ROOT/toolchain --with-libtapi=$APPLE_TOOLCHAIN_ROOT/libtapi --target=x86_64-apple-darwin19
|
./configure --prefix $APPLE_TOOLCHAIN_ROOT/toolchain --with-libtapi=$APPLE_TOOLCHAIN_ROOT/libtapi --target=x86_64-apple-darwin19
|
||||||
make install
|
make install
|
||||||
- test_macos: |
|
- test_macos: |
|
||||||
cd gio/example
|
cd gio
|
||||||
export PATH=/home/build/appletools/bin:$PATH
|
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 ./...
|
||||||
- test_ios: |
|
- test_ios: |
|
||||||
cd gio
|
cd gio
|
||||||
CC=$APPLE_TOOLCHAIN_ROOT/tools/clang-ios CGO_CFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/iPhoneOS.sdk -arch arm64" CGO_LDFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/iPhoneOS.sdk -arch arm64" GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -tags ios ./...
|
CC=$APPLE_TOOLCHAIN_ROOT/tools/clang-ios CGO_CFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/iPhoneOS.sdk -arch arm64" CGO_LDFLAGS="--sysroot $APPLE_TOOLCHAIN_ROOT/iPhoneOS.sdk -arch arm64" GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -tags ios ./...
|
||||||
|
- install_gogio: |
|
||||||
|
cd gio/cmd
|
||||||
|
go install ./gogio
|
||||||
|
- test_ios_gogio: |
|
||||||
|
mkdir tmp
|
||||||
|
cd tmp
|
||||||
|
go mod init example.com
|
||||||
|
go get -d gioui.org/example/kitchen
|
||||||
export PATH=/home/build/appletools/bin:$PATH
|
export PATH=/home/build/appletools/bin:$PATH
|
||||||
cd example
|
gogio -target ios -o app.app gioui.org/example/kitchen
|
||||||
gogio -target ios -o app.app ./kitchen
|
|
||||||
|
|||||||
@@ -22,6 +22,3 @@ tasks:
|
|||||||
- test_cmd: |
|
- test_cmd: |
|
||||||
cd gio/cmd
|
cd gio/cmd
|
||||||
go test ./...
|
go test ./...
|
||||||
- test_example: |
|
|
||||||
cd gio/example
|
|
||||||
go test ./...
|
|
||||||
|
|||||||
+9
-8
@@ -41,9 +41,6 @@ tasks:
|
|||||||
go test -race ./...
|
go test -race ./...
|
||||||
GOOS=windows go test -exec=wine ./...
|
GOOS=windows go test -exec=wine ./...
|
||||||
GOOS=js GOARCH=wasm go build -o /dev/null ./...
|
GOOS=js GOARCH=wasm go build -o /dev/null ./...
|
||||||
- test_example: |
|
|
||||||
cd gio/example
|
|
||||||
go test -race ./...
|
|
||||||
- install_chrome: |
|
- install_chrome: |
|
||||||
curl -s https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
curl -s https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||||
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
||||||
@@ -70,14 +67,18 @@ tasks:
|
|||||||
mv android-ndk-* ndk-bundle
|
mv android-ndk-* ndk-bundle
|
||||||
yes|sdkmanager --licenses
|
yes|sdkmanager --licenses
|
||||||
sdkmanager "platforms;android-29" "build-tools;29.0.2"
|
sdkmanager "platforms;android-29" "build-tools;29.0.2"
|
||||||
- install_gogio: |
|
|
||||||
cd gio/cmd
|
|
||||||
go install ./gogio
|
|
||||||
- test_android: |
|
- test_android: |
|
||||||
cd gio
|
cd gio
|
||||||
CC=$ANDROID_SDK_ROOT/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang GOOS=android GOARCH=arm64 CGO_ENABLED=1 go build ./...
|
CC=$ANDROID_SDK_ROOT/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang GOOS=android GOARCH=arm64 CGO_ENABLED=1 go build ./...
|
||||||
cd example
|
- install_gogio: |
|
||||||
gogio -target android ./kitchen
|
cd gio/cmd
|
||||||
|
go install ./gogio
|
||||||
|
- test_android_gogio: |
|
||||||
|
mkdir tmp
|
||||||
|
cd tmp
|
||||||
|
go mod init example.com
|
||||||
|
go get -d gioui.org/example/kitchen
|
||||||
|
gogio -target android gioui.org/example/kitchen
|
||||||
- check_gofmt: |
|
- check_gofmt: |
|
||||||
cd gio
|
cd gio
|
||||||
test -z "$(gofmt -s -l .)"
|
test -z "$(gofmt -s -l .)"
|
||||||
|
|||||||
@@ -19,6 +19,3 @@ tasks:
|
|||||||
- test_cmd: |
|
- test_cmd: |
|
||||||
cd gio/cmd
|
cd gio/cmd
|
||||||
go test ./...
|
go test ./...
|
||||||
- test_example: |
|
|
||||||
cd gio/example
|
|
||||||
go test ./...
|
|
||||||
|
|||||||
Reference in New Issue
Block a user