-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
606 changed files
with
34,381 additions
and
2,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Idea Action Plan | ||
description: Outline the scope and steps for implementing an enhancement. Start with "Ideas" instead to request and discuss new features. | ||
labels: ["enhancement"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
## Description | ||
Thanks for taking the time to create the Issue, and welcome to the Noirot family! | ||
- type: textarea | ||
id: problem | ||
attributes: | ||
label: Problem | ||
description: Describe what you feel lacking. Supply code / step-by-step examples if applicable. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: Happy Case | ||
description: Describe how you think it should work. Supply pseudocode / step-by-step examples if applicable. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: alternatives | ||
attributes: | ||
label: Alternatives Considered | ||
description: Describe less-happy cases you have considered, if any. | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional Context | ||
description: Supplement further information if applicable. | ||
- type: markdown | ||
attributes: | ||
value: | | ||
## Pull Request | ||
- type: dropdown | ||
id: pr-preference | ||
attributes: | ||
label: Would you like to submit a PR for this Issue? | ||
description: Fellow contributors are happy to provide support where applicable. | ||
multiple: false | ||
options: | ||
- "No" | ||
- "Maybe" | ||
- "Yes" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: pr-support | ||
attributes: | ||
label: Support Needs | ||
description: Support from other contributors you are looking for to create a PR for this Issue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish acvm_js | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
acvm-ref: | ||
description: The acvm reference to checkout | ||
required: true | ||
|
||
jobs: | ||
publish-acvm-js-package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.acvm-ref }} | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: 18.15 | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-23.05 | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: barretenberg | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: Build acvm-js | ||
working-directory: acvm-repo | ||
run: | | ||
nix build .# | ||
- name: Discover Build Output Path | ||
working-directory: acvm-repo | ||
run: echo "BUILD_OUTPUT_PATH=$(readlink -f ./result)" >> $GITHUB_ENV | ||
|
||
- name: Copy Build Output to Temporary Directory | ||
working-directory: acvm-repo | ||
run: | | ||
mkdir temp_publish_dir | ||
cp -r ${{ env.BUILD_OUTPUT_PATH }}/* temp_publish_dir/ | ||
- name: Publish to NPM | ||
working-directory: ./acvm-repo/temp_publish_dir | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Publish ACVM crates | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
acvm-ref: | ||
description: The acvm reference to checkout | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish in order | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.acvm-ref }} | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.66.0 | ||
|
||
# These steps are in a specific order so crate dependencies are updated first | ||
- name: Publish acir_field | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package acir_field | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish brillig | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package brillig | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acir | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package acir | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acvm_blackbox_solver | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package acvm_blackbox_solver | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish barretenberg_blackbox_solver | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package barretenberg_blackbox_solver | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acvm_stdlib | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package acvm_stdlib | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish brillig_vm | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package brillig_vm | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acvm | ||
working-directory: acvm-repo | ||
run: | | ||
cargo publish --package acvm | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: ACVM Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release-please: | ||
name: Create Release | ||
outputs: | ||
release-pr: ${{ steps.release.outputs.pr }} | ||
tag-name: ${{ steps.release.outputs.tag_name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run release-please | ||
id: release | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
token: ${{ secrets.NOIR_RELEASES_TOKEN }} | ||
command: manifest | ||
|
||
publish: | ||
name: Publish crates | ||
needs: [release-please] | ||
if: ${{ needs.release-please.outputs.tag-name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to publish workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: acvm-publish.yml | ||
ref: master | ||
inputs: '{ "acvm-ref": "${{ needs.release-please.outputs.tag-name }}" }' | ||
|
||
dispatch-publish-acvm-js: | ||
name: Dispatch to publish-acvm-js workflow | ||
needs: [release-please] | ||
if: ${{ needs.release-please.outputs.tag-name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger publish-acvm-js.yml workflow | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: acvm-publish-acvm-js.yml | ||
ref: master | ||
inputs: '{ "acvm-ref": "${{ needs.release-please.outputs.tag-name }}" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ACVM Rust | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
clippy-n-test: | ||
name: Test on ${{ matrix.os }} | ||
runs-on: ${{ matrix.runner }} | ||
timeout-minutes: 30 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu | ||
runner: ubuntu-latest | ||
target: x86_64-linux | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Nix | ||
uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-23.05 | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: barretenberg | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
||
- name: Run `nix flake check` | ||
working-directory: acvm-repo | ||
run: | | ||
nix flake check -L | ||
- name: Export cache from nix store | ||
if: steps.nix-store-cache.outputs.cache-hit != 'true' | ||
working-directory: acvm-repo | ||
run: | | ||
nix copy --to "file:///tmp/nix-cache?compression=zstd¶llel-compression=true" .#cargo-artifacts |
Oops, something went wrong.