Skip to content

Commit 2835640

Browse files
chudkowskyclaude
andauthored
feat: add persistent-tee to release artifacts and Docker image (#54)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent febe563 commit 2835640

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
cargo --version
109109
(cd bin/persistent && cargo build --release --all-features --target ${{ matrix.job.target }})
110110
(cd bin/ops && cargo build --release --all-features --target ${{ matrix.job.target }})
111+
(cd bin/persistent-tee && cargo build --release --all-features --target ${{ matrix.job.target }})
111112
112113
- name: Archive binaries
113114
id: artifacts
@@ -117,15 +118,19 @@ jobs:
117118
if [ "$PLATFORM_NAME" == "linux" ]; then
118119
tar -czvf "persistent_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/persistent/target/${TARGET}/release persistent
119120
tar -czvf "ops_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/ops/target/${TARGET}/release ops
121+
tar -czvf "persistent-tee_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/persistent-tee/target/${TARGET}/release persistent-tee
120122
echo "persistent_file=persistent_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
121123
echo "ops_file=ops_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
124+
echo "persistent_tee_file=persistent-tee_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
122125
elif [ "$PLATFORM_NAME" == "darwin" ]; then
123126
# We need to use gtar here otherwise the archive is corrupt.
124127
# See: https://github.com/actions/virtual-environments/issues/2619
125128
gtar -czvf "persistent_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/persistent/target/${TARGET}/release persistent
126129
gtar -czvf "ops_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/ops/target/${TARGET}/release ops
130+
gtar -czvf "persistent-tee_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./bin/persistent-tee/target/${TARGET}/release persistent-tee
127131
echo "persistent_file=persistent_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
128132
echo "ops_file=ops_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
133+
echo "persistent_tee_file=persistent-tee_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
129134
fi
130135
shell: bash
131136

@@ -136,6 +141,7 @@ jobs:
136141
mkdir -p $PLATFORM_NAME/$ARCH
137142
mv bin/persistent/target/$TARGET/release/persistent $PLATFORM_NAME/$ARCH
138143
mv bin/ops/target/$TARGET/release/ops $PLATFORM_NAME/$ARCH
144+
mv bin/persistent-tee/target/$TARGET/release/persistent-tee $PLATFORM_NAME/$ARCH
139145
shell: bash
140146

141147
- name: Upload docker binaries
@@ -152,6 +158,7 @@ jobs:
152158
path: |
153159
${{ steps.artifacts.outputs.persistent_file }}
154160
${{ steps.artifacts.outputs.ops_file }}
161+
${{ steps.artifacts.outputs.persistent_tee_file }}
155162
retention-days: 1
156163

157164
build-programs:

Dockerfile-bins

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LABEL org.opencontainers.image.source=https://github.com/dojoengine/saya
88

99
COPY --from=binaries --chmod=755 $TARGETPLATFORM/persistent /usr/local/bin/
1010
COPY --from=binaries --chmod=755 $TARGETPLATFORM/ops /usr/local/bin/
11+
COPY --from=binaries --chmod=755 $TARGETPLATFORM/persistent-tee /usr/local/bin/
1112
COPY ./programs /programs
1213

1314
ENV LAYOUT_BRIDGE_PROGRAM=/programs/layout_bridge.json

0 commit comments

Comments
 (0)