Skip to content
Merged
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Tag release
on:
push:
tags:
- "v*"
jobs:
release:
name: Upload
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Install a flaked Nix
uses: DeterminateSystems/nix-installer-action@v17
- name: Publish artifacts
run: |
nix develop -c goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.zig-cache

# Build
dist
zig-out

# Test
Expand Down
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
builds:
- id: git-coverage
builder: zig
flags:
- -Doptimize=ReleaseSmall
targets:
- x86_64-linux
- x86_64-macos
- x86_64-windows
- aarch64-linux
- aarch64-macos
archives:
- formats:
- tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats:
- zip
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ to [Semantic Versioning][semver].
### Maintenance

- Upload reports of test coverage to Codecov to complete proofs of concept.
- Save compilations for various machines to releases when tags are created.

## [0.1.0] - 2025-05-03

Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
devShells.default = pkgs.mkShell {
packages = [
pkgs.git # https://github.com/git/git
pkgs.goreleaser # https://github.com/goreleaser/goreleaser
kcov # https://github.com/SimonKagstrom/kcov
pkgs.zig # https://github.com/ziglang/zig
];
Expand Down