Skip to content

Commit

Permalink
zig fixed to 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed May 2, 2024
1 parent c0c48df commit f9beb47
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- '**.zig'
- '.github/workflows/CI.yml'

env:
ZIG_VERSION: 0.12.0

jobs:
test:
timeout-minutes: 10
Expand All @@ -23,14 +26,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: [master]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
version: ${{ env.ZIG_VERSION }}
- name: fmt and test(windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -53,10 +55,10 @@ jobs:
os: [ubuntu-latest]
targets: [x86_64-windows, x86_64-linux, x86_64-macos, aarch64-macos]
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v1
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
version: ${{ env.ZIG_VERSION }}
- name: Build
run: |
zig build -Dtarget=${{ matrix.targets }} -Dis_ci
12 changes: 7 additions & 5 deletions .github/workflows/binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ on:
- "**.zig"
- ".github/workflows/binary.yml"

env:
ZIG_VERSION: 0.12.0

jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
zig-version: ["master"]
targets:
- "x86-windows"
- "x86_64-windows"
Expand All @@ -35,7 +37,7 @@ jobs:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
version: ${{ env.ZIG_VERSION }}
- name: Set Environment Variables
run: |
echo "BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> $GITHUB_ENV
Expand All @@ -58,17 +60,17 @@ jobs:
strategy:
fail-fast: false
matrix:
zig-version: ["master"]
targets:
- "x86_64-macos"
- "aarch64-macos"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
version: ${{ env.ZIG_VERSION }}

- name: Set Environment Variables
run: |
echo "BUILD_DATE=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> $GITHUB_ENV
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/simargs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- 'src/mod/simargs.zig'
- ".github/workflows/simargs.yml"

env:
ZIG_VERSION: 0.12.0

jobs:
memory-leak:
timeout-minutes: 10
Expand All @@ -25,7 +28,7 @@ jobs:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
version: ${{ env.ZIG_VERSION }}
- name: Memory leak detect
run: |
sudo apt update && sudo apt install -y valgrind
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
zig master
zig 0.12.0
5 changes: 3 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#+TITLE: Zigcli
#+DATE: 2023-10-21T12:09:48+0800
#+LASTMOD: 2024-03-23T15:36:18+0800
#+LASTMOD: 2024-05-02T18:01:55+0800
#+TYPE: docs

[[https://github.com/jiacai2050/zigcli/stargazers][https://img.shields.io/github/stars/jiacai2050/zigcli.svg]]
[[https://github.com/jiacai2050/zigcli/blob/main/LICENSE][https://img.shields.io/github/license/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://img.shields.io/badge/zig%20version-0.12.0-blue.svg]]

#+begin_quote
[[/][Zigcli]] is a toolkit for building command lines programs in Zig.
Expand Down Expand Up @@ -45,7 +46,7 @@ To build zigcli locally, Zig master is required, which can be downloaded [[https
=zigcli= support [[https://ziglang.org/download/0.11.0/release-notes.html#Package-Management][package manager]] introduced in Zig 0.11.

#+begin_src bash
zig fetch --save=curl https://github.com/jiacai2050/zigcli/archive/${COMMIT}.tar.gz
zig fetch --save=zigcli https://github.com/jiacai2050/zigcli/archive/${COMMIT}.tar.gz
#+end_src

#+RESULTS:
Expand Down

0 comments on commit f9beb47

Please sign in to comment.