Skip to content

Commit

Permalink
fix: release also an archive with all binaries for the tutorial
Browse files Browse the repository at this point in the history
this will pack cjit-tutorial.zip as part of the released files to ease
the journey on https://dyne.org/docs/cjit
  • Loading branch information
jaromil committed Dec 12, 2024
1 parent a06a28b commit eeae915
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ jobs:
with:
path: |
cjit-bin
- name: zip the tutorial archive
run: |
bash build/zip-tutorial.sh
mkdir -p cjit-bin/release-tutorial
mv cjit-tutorial.zip cjit-bin/release-tutorial/
- name: show directory structure
run: tree -dL 3
- name: relase all binary artifacts
Expand Down
12 changes: 12 additions & 0 deletions build/zip-tutorial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# assume all binaries are in cjit-bin/release*/*
# from github action release assets

mkdir -p cjit-tutorial
cp -ra cjit-bin/release/* cjit-tutorial
cp -ra examples cjit-tutorial
git clone --depth 0 https://github.com/dyne/docs
cp -ra docs/src/cjit cjit-tutorial/docs

zip a cjit-tutorial.zip cjit-tutorial

0 comments on commit eeae915

Please sign in to comment.