Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Nix Build Verification

concurrency:
Expand All @@ -9,13 +10,15 @@ on:
branches:
- main
paths:
- 'nix/**'
- 'flake.nix'
- 'flake.lock'
- '.github/workflows/nix-build.yml'
push:
branches:
- main
paths:
- 'nix/**'
- 'flake.nix'
- 'flake.lock'
- '.github/workflows/nix-build.yml'
workflow_dispatch:

Expand Down Expand Up @@ -53,7 +56,7 @@ jobs:

- name: Build with Nix
run: |
nix-build nix/default.nix --show-trace
nix build .#infer --show-trace --print-build-logs

- name: Verify binary
run: |
Expand Down Expand Up @@ -93,15 +96,15 @@ jobs:

- name: Check Nix formatting (nixfmt-rfc-style)
run: |
nix-shell -p nixfmt-rfc-style --run "nixfmt --check nix/package.nix nix/default.nix"
nix-shell -p nixfmt-rfc-style --run "nixfmt --check flake.nix"

- name: Lint with statix
run: |
nix-shell -p statix --run "statix check nix/"
nix-shell -p statix --run "statix check flake.nix"

- name: Evaluate Nix expression
- name: Check flake evaluates on all systems
run: |
nix-instantiate --eval --strict nix/default.nix --show-trace
nix flake check --all-systems --no-build --show-trace

summary:
name: Build Summary
Expand All @@ -124,4 +127,4 @@ jobs:
exit 1
fi

echo "All Nix build checks passed!"
echo "All Nix build checks passed!"
152 changes: 0 additions & 152 deletions .github/workflows/nix-version-sync.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ jobs:
@semantic-release/commit-analyzer@13.0.1 \
@semantic-release/release-notes-generator@14.1.0 \
@semantic-release/changelog@6.0.3 \
@semantic-release/exec@7.1.0 \
@semantic-release/git@10.0.1 \
@semantic-release/github@1.0.0 \
conventional-changelog-conventionalcommits@9.1.0 \
conventional-changelog-cli@5.0.0

- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@v3

- name: Check for existing releases
id: check_releases
env:
Expand Down
21 changes: 21 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,15 @@ plugins:
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- - "@semantic-release/exec"
- prepareCmd: |
sed -i.bak 's|version = "[^"]*";|version = "${nextRelease.version}";|' flake.nix && rm flake.nix.bak
determinate-nixd fix hashes --auto-apply flake.nix

- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- flake.nix
message: |
chore(release): ${nextRelease.version} [skip ci]

Expand Down Expand Up @@ -124,6 +130,21 @@ plugins:
curl -fsSL https://raw.githubusercontent.com/inference-gateway/cli/main/install.sh | bash -s -- --install-dir $HOME/.local/bin
```

### Nix Flake

Run directly without installing:

```bash
nix run github:inference-gateway/cli/<%= nextRelease.gitTag %>
```

Or pin it in a [Flox](https://flox.dev) manifest (`.flox/env/manifest.toml`):

```toml
[install]
infer.flake = "github:inference-gateway/cli/<%= nextRelease.gitTag %>"
```

### Binary Download

Download the appropriate binary for your platform from the assets below.
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading