lix-install-action/README.md

27 lines
701 B
Markdown
Raw Normal View History

2023-01-13 18:23:15 +00:00
# Nix Installer Action
2023-01-13 18:53:14 +00:00
You can use [`nix-installer`](https://github.com/DeterminateSystems/nix-installer) as a Github action like so:
2023-01-13 18:23:15 +00:00
```yaml
on:
pull_request:
push:
branches: [main]
jobs:
lints:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action
2023-01-13 18:23:15 +00:00
with:
# Allow the installed Nix to make authenticated Github requests.
# If you skip this, you will likely get rate limited.
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run `nix build`
run: nix build .
```
2023-01-13 18:35:23 +00:00
See [`.github/workflows/ci.yml`](.github/workflows/ci.yml) for a full example.