diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fc302f2..c433202 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea96373..95873c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + - name: Make executable (Unix) + if: runner.os != 'Windows' + run: chmod +x zig-out/bin/temporalz + + - name: Run tests + run: zig build test diff --git a/README.md b/README.md index 6ae8587..634e241 100644 --- a/README.md +++ b/README.md @@ -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 - diff --git a/build.zig.zon b/build.zig.zon index 480bc74..27ec8fe 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -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", diff --git a/example/build.zig.zon b/example/build.zig.zon index 2a9dd9e..f61e2aa 100644 --- a/example/build.zig.zon +++ b/example/build.zig.zon @@ -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 = "../", diff --git a/pkg/temporal/build.zig.zon b/pkg/temporal/build.zig.zon index 3802523..b276c4e 100644 --- a/pkg/temporal/build.zig.zon +++ b/pkg/temporal/build.zig.zon @@ -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",