Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions zetasql.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: zetasql
version: 2024.06.1
epoch: 2
version: 2024.08.2
epoch: 0
description: ZetaSQL - Analyzer Framework for SQL
copyright:
- license: Apache-2.0
Expand All @@ -18,8 +18,10 @@ environment:
- build-base
- busybox
- ca-certificates-bundle
- gcc-12
- cmake
- gcc-12-default
- git
- glibc-locale-en # This fixes the build failure with UTF-8 filenames, see wolfi-dev/os#26865
- openjdk-17
- openjdk-17-default-jvm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect default-jdk here.

- openssf-compiler-options
Expand All @@ -28,25 +30,41 @@ environment:
- tzdata
- wolfi-baselayout
environment:
BAZEL_ARGS: "--config=g++"
EXTRA_BAZEL_ARGS: "--tool_java_runtime_version=local_jdk"
BAZEL_ARGS: "--config=g++ --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --tool_java_runtime_version=local_jdk"
JAVA_HOME: /usr/lib/jvm/java-17-openjdk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c++17 is old/low; it can cause issues with runtime compat with forexample our icu. But if that is not used, it can also be ok. Higher / default version standard would be nice (unless known to be broken).

LANG: en_US.UTF-8
CC: gcc
CXX: g++

pipeline:
- uses: git-checkout
with:
repository: https://github.com/google/zetasql
tag: ${{package.version}}
expected-commit: f6df6971a205790966e73eda0134f05a022d0e6a
expected-commit: 194cd32b5d766d60e3ca442651d792c7fe54ea74

- uses: patch
with:
patches: multi-arch-for-linux.patch

- runs: |
cd zetasql
bazel build --verbose_failures ${BAZEL_ARGS} $EXTRA_BAZEL_ARGS -c opt ...
# TODO need to copy whats required after this from either bazel-bin or bazel-out
# odd permisson issue with bazel cache DONT MERGE UNTIL FIGURED OUT
mkdir -p .cache/bazel/_bazel_root
chmod -R 755 .cache/bazel/_bazel_root

# DONT MERGE UNTIL FIGURED OUT
attempt=1
while [ $attempt -le 15 ]; do
echo "Attempt $attempt of 10..."
if bazel build --verbose_failures $BAZEL_ARGS -c opt zetasql/...; then
echo "Build succeeded on attempt $attempt!"
break
fi
echo "Build failed on attempt $attempt"
attempt=$(( attempt + 1 ))
[ $attempt -le 15 ] && sleep 2
done
[ $attempt -le 15 ] || exit 1

- uses: strip

Expand Down
Loading