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