From c3f0ff455c0639ed0fb4198c10f5b34d347468c3 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Wed, 1 Jan 2025 17:56:53 +0800 Subject: [PATCH] fix ci again --- .github/workflows/CI.yml | 2 +- .github/workflows/release.yml | 3 ++- docs/content/_index.org | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a6528b4..5e45ee6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -72,4 +72,4 @@ jobs: sudo apt update && sudo apt-get install -y libcurl4-openssl-dev - name: Build run: | - zig build -Dtarget=${{ matrix.targets }} + zig build -Dtarget=${{ matrix.targets }} -Dskip_zigfetch=true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46795df..86186fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - name: Set env run: | echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV - echo "OUT_DIR=/tmp/zigcli-${{ github.ref_name }}" >> $GITHUB_ENV + echo "OUT_DIR=/tmp/zigcli" >> $GITHUB_ENV - name: Build(Ubuntu) if: matrix.os == 'ubuntu-latest' run: | @@ -43,6 +43,7 @@ jobs: - name: Build(MacOS) if: matrix.os == 'macos-latest' run: | + mkdir -p "${OUT_DIR}" zig build -Doptimize=ReleaseSafe \ -Dgit_commit=${GIT_COMMIT} -Dbuild_date=${BUILD_DATE} rm -f zig-out/bin/*demo diff --git a/docs/content/_index.org b/docs/content/_index.org index 1bc66dd..9b88d04 100644 --- a/docs/content/_index.org +++ b/docs/content/_index.org @@ -1,12 +1,12 @@ #+TITLE: Zigcli #+DATE: 2023-10-21T12:09:48+0800 -#+LASTMOD: 2024-08-17T18:53:40+0800 +#+LASTMOD: 2025-01-01T17:52:56+0800 #+TYPE: docs #+author: Jiacai Liu [[https://github.com/jiacai2050/zigcli][https://img.shields.io/github/stars/jiacai2050/zigcli.svg]] [[https://github.com/jiacai2050/loc/actions/workflows/CI.yml][https://github.com/jiacai2050/loc/actions/workflows/CI.yml/badge.svg]] -[[https://github.com/jiacai2050/loc/actions/workflows/binary.yml][https://github.com/jiacai2050/loc/actions/workflows/binary.yml/badge.svg]] +[[https://github.com/jiacai2050/loc/actions/workflows/binary.yml][https://github.com/jiacai2050/loc/actions/workflows/release.yml/badge.svg]] [[https://img.shields.io/badge/zig%20version-0.13.0-blue.svg]] #+begin_quote