Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

ci: add template check #7

Merged
merged 2 commits into from
Jan 12, 2024
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
12 changes: 12 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ jobs:
- name: r0vm
if: matrix.os == 'macos-latest'
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.r0vm

- name: template
if: matrix.os == 'ubuntu-latest'
run: |
git config --global init.defaultBranch main
./scripts/use-template.sh

- name: template
if: matrix.os == 'macos-latest'
run: |
git config --global init.defaultBranch main
./scripts/use-template.sh
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# risc0pkgs - Nixified [RISC Zero](https://www.risczero.com/) Packages

`risc0pkgs` contains risc0 related packages like `r0vm` and risc0's `rustc` fork packaged with Nix. Moreover, it provides a helper function: `buildRisc0Package`, which you can use to package your risc0 project. The following section describes how to set up a risc0 project from scratch.

## Getting Started

It's recommended to get started by initializing your project using the default template:
Expand All @@ -13,11 +15,9 @@ nix flake init -t github:cspr-rad/risc0pkgs
git init
git add -A

nix build .#risc0prover
nix build .#risc0package
```

Note: Change the `system` to `aarch64-darwin` if you're on macOS.

If you want to integrate `risc0` into your existing flake, see `./templates/default/flake.nix`.

## Development Shell
Expand Down
11 changes: 11 additions & 0 deletions scripts/use-template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

mkdir risc0-workspace
cd risc0-workspace

nix flake init -t github:cspr-rad/risc0pkgs

git init
git add -A

nix build .#risc0package