Skip to content

Instantly share code, notes, and snippets.

@lucperkins
Created October 28, 2022 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucperkins/8c2b65f0bf7e18572b816919b2a90589 to your computer and use it in GitHub Desktop.
Save lucperkins/8c2b65f0bf7e18572b816919b2a90589 to your computer and use it in GitHub Desktop.
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
# Mostly to avoid GitHub rate limiting
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# Note: this would only work if Cargo is included in the Nix shell
- name: Build release
run: nix develop --command cargo build --release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment