chore: update zig version
This commit is contained in:
parent
eeac7a08b6
commit
a4c2e4cd7a
6 changed files with 54 additions and 55 deletions
14
.github/workflows/cd.yml
vendored
14
.github/workflows/cd.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Release
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
|
@ -56,12 +56,12 @@ jobs:
|
|||
rust-target: aarch64-apple-ios
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.17.0-dev.639+284ab0ad8
|
||||
|
||||
version: 0.17.0-dev.667+0569f1f6a
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
|
|
@ -72,7 +72,7 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gcc-aarch64-linux-gnu
|
||||
|
||||
|
||||
- name: Install cross-compilers (Windows-mingw)
|
||||
if: contains(matrix.target, 'windows-gnu')
|
||||
run: |
|
||||
|
|
@ -83,7 +83,7 @@ jobs:
|
|||
run: |
|
||||
cd pkg/temporal
|
||||
zig build -Dbuild-rust -Dtarget=${{ matrix.target }} -Doptimize=ReleaseSafe
|
||||
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
86
.github/workflows/ci.yml
vendored
86
.github/workflows/ci.yml
vendored
|
|
@ -2,9 +2,9 @@ name: CI
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -14,30 +14,30 @@ jobs:
|
|||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
# os: [ubuntu-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.17.0-dev.639+284ab0ad8
|
||||
|
||||
- name: Build project
|
||||
run: zig build
|
||||
|
||||
- name: Verify executable
|
||||
run: |
|
||||
./zig-out/bin/zx --help || echo "Executable built successfully"
|
||||
shell: bash
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: temporalz-${{ matrix.os }}
|
||||
path: zig-out/
|
||||
retention-days: 1
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.17.0-dev.667+0569f1f6a
|
||||
|
||||
- name: Build project
|
||||
run: zig build
|
||||
|
||||
- name: Verify executable
|
||||
run: |
|
||||
./zig-out/bin/zx --help || echo "Executable built successfully"
|
||||
shell: bash
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: temporalz-${{ matrix.os }}
|
||||
path: zig-out/
|
||||
retention-days: 1
|
||||
|
||||
test:
|
||||
name: Test (${{ matrix.os }})
|
||||
|
|
@ -47,25 +47,25 @@ jobs:
|
|||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
# os: [ubuntu-latest, macos-latest]
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.17.0-dev.639+284ab0ad8
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: temporalz-${{ matrix.os }}
|
||||
path: zig-out/
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.17.0-dev.667+0569f1f6a
|
||||
|
||||
- name: Make executable (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: chmod +x zig-out/bin/temporalz
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: temporalz-${{ matrix.os }}
|
||||
path: zig-out/
|
||||
|
||||
- name: Run tests
|
||||
run: zig build test
|
||||
- name: Make executable (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: chmod +x zig-out/bin/temporalz
|
||||
|
||||
- name: Run tests
|
||||
run: zig build test
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ Temporalz provides Zig bindings to the Rust-based [temporal_rs](https://github.c
|
|||
|
||||
#### Prerequisites
|
||||
|
||||
- Zig 0.17.0-dev.639+284ab0ad8
|
||||
- Zig 0.17.0-dev.667+0569f1f6a
|
||||
- Rust toolchain (only required if [prebuilt staticlibs](#prebuilt) are not available for your platform)
|
||||
|
||||
#### Add as a Dependency
|
||||
|
|
@ -98,4 +98,3 @@ zig build test
|
|||
## License
|
||||
|
||||
MIT
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
.name = .temporalz,
|
||||
.version = "0.2.0",
|
||||
.fingerprint = 0xd8d79d59acc4faae,
|
||||
.minimum_zig_version = "0.17.0-dev.639+284ab0ad8",
|
||||
.minimum_zig_version = "0.17.0-dev.667+0569f1f6a",
|
||||
.dependencies = .{
|
||||
.temporal = .{
|
||||
.path = "pkg/temporal",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
.name = .temporalz_example,
|
||||
.version = "0.1.2",
|
||||
.fingerprint = 0x686c9dfc777f9593,
|
||||
.minimum_zig_version = "0.17.0-dev.639+284ab0ad8",
|
||||
.minimum_zig_version = "0.17.0-dev.667+0569f1f6a",
|
||||
.dependencies = .{
|
||||
.temporalz = .{
|
||||
.path = "../",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
.name = .temporal,
|
||||
.version = "0.2.0",
|
||||
.fingerprint = 0xd5dcf3f41df6b117,
|
||||
.minimum_zig_version = "0.17.0-dev.639+284ab0ad8",
|
||||
.minimum_zig_version = "0.17.0-dev.667+0569f1f6a",
|
||||
.dependencies = .{
|
||||
.temporal_rs = .{
|
||||
.url = "git+https://github.com/boa-dev/temporal?ref=v0.2.3#c003cc92325e19b26f8ee2f85e4a47d98cbcc781",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue