Skip to content

chore: bump version

chore: bump version #4

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*' # Triggers on version tags like v1.0.0
permissions:
contents: write
attestations: write
id-token: write
jobs:
build:
name: Build on ${{ matrix.artifact_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-linux
artifact_name: linux-x86_64
- os: macos-latest
target: x86_64-macos
artifact_name: macos-x86_64
- os: macos-latest
target: aarch64-macos
artifact_name: macos-aarch64
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.15.2
- name: Run tests
run: zig build test
- name: Build project
run: zig build -Doptimize=ReleaseFast -Dtarget=${{ matrix.target }} --summary all
- name: Prepare artifacts
run: |
mkdir -p artifacts
cp zig-out/bin/* artifacts/ || true
cd artifacts
tar -czf ../nrz-${{ matrix.artifact_name }}.tar.gz *
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: nrz-${{ matrix.artifact_name }}.tar.gz
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: nrz-${{ matrix.artifact_name }}
path: |
nrz-${{ matrix.artifact_name }}.tar.gz
if-no-files-found: error
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: artifacts/*
draft: false
prerelease: false
body: ${{steps.github_release.outputs.changelog}}