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
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ jobs:
path: outputs
name: zrc-${{ runner.os }}-${{ runner.arch }}-release
build-nix:
runs-on: ubuntu-26.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-24.04
- ubuntu-24.04-arm
- macos-latest

steps:
- name: Checkout
Expand All @@ -74,22 +80,27 @@ jobs:
nix_conf: |
keep-env-derivations = true
keep-outputs = true
- name: Restore cached Nix store
- name: Setup Cachix (main only)
if: github.ref == 'refs/heads/main'
uses: cachix/cachix-action@v17
with:
name: zirco-lang
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Restore cached Nix store (dev only)
if: github.ref != 'refs/heads/main'
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}-
purge: true
purge-prefixes: nix-${{ runner.os }}-
purge-prefixes: nix-${{ runner.os }}-${{ runner.arch }}-
purge-created: 0
purge-last-accessed: P1DT12H
purge-primary-key: never
- name: Test Nix devshell
run: nix develop --command cargo --version
- name: Build with Nix
run: nix build .#zrc .#libzr
- name: Clean up Nix store
run: nix-collect-garbage -d
lint-std:
needs: build
runs-on: ubuntu-26.04
Expand Down
9 changes: 9 additions & 0 deletions book/src/ch01-01-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ You can add our package to your flake inputs as follows:
> If you encounter issues with missing libraries or include paths, you may need to manually set the
> `-I`/`-L` paths for headers and libzr.

### Binary Cache

We also cache built binaries from `main` to Cachix.

```
extra-substituters = https://zirco-lang.cachix.org
extra-trusted-public-keys = zirco-lang.cachix.org-1:yOFfIeYLXiX1bw09I3WnPWOBlBajwH3wYsPHlzwYDgc=
```

## Download Prebuilt Binaries

Release tarballs are available on the [releases page](https://github.com/zirco-lang/zrc/releases/tag/nightly).
Expand Down
Loading