mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 09:34:11 +02:00
README: point to tutorial
This commit is contained in:
parent
bef08570fe
commit
4b5e2edfee
1 changed files with 3 additions and 32 deletions
33
README.md
33
README.md
|
|
@ -12,38 +12,9 @@ After each job, just built derivations are pushed to your binary cache.
|
||||||
|
|
||||||
Before each job, derivations to be built are first substituted (if they exist) from your binary cache.
|
Before each job, derivations to be built are first substituted (if they exist) from your binary cache.
|
||||||
|
|
||||||
## Usage
|
## Getting started
|
||||||
|
|
||||||
### 1. [Login to Cachix](https://cachix.org/api/v1/login) and create a new cache.
|
Follow [Continuous Integration with GitHub Actions](https://nix.dev/tutorials/continuous-integration-github-actions.html) tutorial.
|
||||||
1. Follow getting started to create your signing key
|
|
||||||
2. Backup the signing key in the process.
|
|
||||||
|
|
||||||
### 2. As an admin of your github repository:
|
|
||||||
1. Click on Settings
|
|
||||||
2. Click on Secrets ([If missing, you need to sign up first for actions beta](https://github.com/features/actions))
|
|
||||||
3. Add your signing key value under name `CACHIX_SIGNING_KEY`.
|
|
||||||
|
|
||||||
### 3. Create `.github/workflows/test.yml` in your repo with the following contents:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
name: "Test"
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.3.1
|
|
||||||
- uses: cachix/install-nix-action@v10
|
|
||||||
- uses: cachix/cachix-action@v6
|
|
||||||
with:
|
|
||||||
name: mycache
|
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
||||||
# Only needed for private caches
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
- run: nix-build
|
|
||||||
```
|
|
||||||
|
|
||||||
See [action.yml](action.yml) for all options.
|
See [action.yml](action.yml) for all options.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue