Skip to content

Commit 668d64a

Browse files
authored
try fix (#355)
1 parent 5c82bba commit 668d64a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
cd ../../Boka
7979
8080
# Build Swift release binary with our static libraries
81-
swift build -c release \
81+
swift build -c release -Xswiftc -Onone -Xswiftc -whole-module-optimization -Xswiftc -package-cmo -Xswiftc -unavailable-decl-optimization=complete \
8282
-Xlinker "$STATIC_LIB_DIR/lib/librocksdb.a" \
8383
-Xlinker "$STATIC_LIB_DIR/lib/liblz4.a" \
8484
-Xlinker "$STATIC_LIB_DIR/lib/libzstd.a" \

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0
1+
6.1

scripts/release.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM swift:6.1-noble AS builder
22
WORKDIR /boka
33

44
RUN apt-get update && \
5-
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
6-
apt-get install -y curl build-essential cmake librocksdb-dev libzstd-dev libbz2-dev liblz4-dev
5+
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
6+
apt-get install -y curl build-essential cmake librocksdb-dev libzstd-dev libbz2-dev liblz4-dev
77

88
# install rust
99
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -17,7 +17,7 @@ RUN make deps
1717

1818
WORKDIR /boka/Boka
1919

20-
RUN swift build -c release
20+
RUN swift build -c release -Xswiftc -Onone -Xswiftc -whole-module-optimization -Xswiftc -package-cmo -Xswiftc -unavailable-decl-optimization=complete
2121

2222
RUN cp $(swift build --show-bin-path -c release)/Boka /boka/boka-bin
2323

@@ -50,7 +50,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
5050
pkg-config \
5151
tzdata \
5252
zlib1g-dev \
53-
librocksdb-dev \
53+
librocksdb-dev \
5454
&& rm -r /var/lib/apt/lists/*
5555

5656
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
@@ -105,7 +105,7 @@ COPY --from=builder /boka/boka-bin /usr/local/bin/boka
105105

106106
# checks
107107
RUN ldd /usr/local/bin/boka && \
108-
/usr/local/bin/boka --help
108+
/usr/local/bin/boka --help
109109

110110
USER boka
111111

0 commit comments

Comments
 (0)