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

Commit

Permalink
ci: add template check
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Jan 12, 2024
1 parent 144c9a4 commit a510254
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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.
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

0 comments on commit a510254

Please sign in to comment.