This repository was archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
fix: WASM provided by nix build of barretenberg #24
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7687792
fix: Use wasm from nix build
5bc9ec4
fix: adds missing nix installation
fe608c2
dbg: should contain result from nix
f13d519
dbg: add backslash to upload dir
fec70f5
dbg: readlink workaround
b06219e
dbg: download path
7772860
dbg: clearer download path
c0a9448
dbg: setting bb path to download location
947700e
dbg: test workflow-run
cf0ce87
dbg: correct workflow name
f0fdc04
dbg: change name
b3a3f4d
dbg: typos fix
3d5628a
enable custom branch
8603354
dbg: all build bb-wasm
41b0e32
dbg: needs added
822a7ac
fix(build): bb wasm based on nix
d09e35f
fix: barretenberg pinning
8e5fccd
Update .github/workflows/nix-barretenberg.yml
TomAFrench 8ef8949
Apply suggestions from code review
phated d55a104
format workflows
phated File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| passthrough = [ | ||
| "HOME", | ||
| "RUST_BACKTRACE", | ||
| "BARRETENBERG_BIN_DIR" | ||
| ] | ||
| volumes = [ | ||
| "HOME", | ||
|
|
||
This file contains hidden or 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,50 @@ | ||
| name: libbarretenberg | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| noir-ref: | ||
| description: The noir reference to checkout | ||
| required: false | ||
| schedule: | ||
| - cron: "0 2 * * *" # run at 2 AM UTC | ||
| push: | ||
|
|
||
| jobs: | ||
| build-barretenberg: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Noir repo | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| repository: noir-lang/noir | ||
| path: noir | ||
| ref: ${{ inputs.noir-ref || 'master' }} | ||
|
|
||
| - name: Collect locked barretenberg rev | ||
| run: | | ||
| echo "BB_REV=$(jq -r .nodes.barretenberg.locked.rev ./noir/flake.lock)" >> $GITHUB_ENV | ||
|
|
||
| - uses: cachix/install-nix-action@v20 | ||
| with: | ||
| nix_path: nixpkgs=channel:nixos-22.11 | ||
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - uses: cachix/cachix-action@v12 | ||
| with: | ||
| name: barretenberg | ||
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
|
|
||
| # Upload does not work with symlinks, using this workaround: | ||
| # https://github.com/actions/upload-artifact/issues/92#issuecomment-1080347032 | ||
| - name: Build barretenberg as libbarretenberg-wasm32 | ||
| run: | | ||
| nix build "git+https://github.com/AztecProtocol/barretenberg?rev=${{ env.BB_REV }}#wasm32" | ||
| echo "ARTIFACT_UPLOAD_PATH=$(readlink -f result)" >> $GITHUB_ENV | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: libbarretenberg-wasm32 | ||
| path: ${{ env.ARTIFACT_UPLOAD_PATH }} | ||
| retention-days: 3 |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.