Skip to content

Commit

Permalink
org to md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Sep 28, 2024
1 parent e9fc9d3 commit 4c5c3dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ targets=(
export BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S%z')
export GIT_COMMIT=$(git rev-parse --short HEAD)

pandoc -f org -t markdown README.org -o /tmp/README.md

for target in "${targets[@]}"; do
echo "Building for ${target}..."
rm -rf zig-out/
zig build -Doptimize=ReleaseSafe -Dtarget="${target}" \
-Dgit_commit=${GIT_COMMIT} -Dbuild_date=${BUILD_DATE} -Dis_ci=true
pushd zig-out
zip -r zigcli-${version}-${target}.zip bin ../LICENSE ../README.org
zip -r zigcli-${version}-${target}.zip bin ../LICENSE /tmp/README.md
popd
done
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- name: Set env
run: |
echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Install
uses: pandoc/actions/setup@v1
with:
version: 2.19
- name: Build
run: |
bash .github/build-release.sh
Expand Down
5 changes: 3 additions & 2 deletions docs/content/programs/_index.org
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#+TITLE: Programs
#+DATE: 2023-10-21T12:26:45+0800
#+LASTMOD: 2024-09-01T09:57:50+0800
#+LASTMOD: 2024-09-28T11:50:42+0800
#+TYPE: docs
#+WEIGHT: 20
#+DESCRIPTION: Binary programs which can be used directly

* Install
Prebuilt binaries can be found in [[https://github.com/jiacai2050/zigcli/actions/workflows/binary.yml][CI's artifacts]], or you can build from source:
Latest pre-built binaries can be downloaded on the [[https://github.com/jiacai2050/zigcli/releases][release page]], or you can build from source:

#+begin_src bash
git clone https://github.com/jiacai2050/zigcli.git
#+end_src
Expand Down

0 comments on commit 4c5c3dd

Please sign in to comment.