-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jf/fix-mut-check
- Loading branch information
Showing
130 changed files
with
2,658 additions
and
766 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,27 @@ | ||
name: Setup Nix | ||
description: Installs and setups Nix components | ||
|
||
inputs: | ||
github-token: | ||
description: 'Github Access Token' | ||
required: true | ||
nix-cache-name: | ||
description: 'Name of the Cachix cache to use' | ||
required: true | ||
cachix-auth-token: | ||
description: 'Cachix Auth Token' | ||
required: true | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-23.05 | ||
github_access_token: ${{ inputs.github-token }} | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: ${{ inputs.nix-cache-name }} | ||
authToken: ${{ inputs.cachix-auth-token }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,105 @@ | ||
name: Publish Noir ES Packages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
noir-ref: | ||
description: The noir reference to checkout | ||
required: false | ||
nightly: | ||
description: Indicates this is a nightly release | ||
required: false | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
build-noir_wasm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.noir-ref || 'master' }} | ||
|
||
- name: Setup Nix | ||
uses: ./.github/actions/nix | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
nix-cache-name: ${{ vars.NIX_CACHE_NAME }} | ||
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }} | ||
|
||
- name: Build wasm package | ||
run: | | ||
nix build -L .#noir_wasm | ||
build-noirc_abi_wasm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.noir-ref || 'master' }} | ||
|
||
- name: Setup Nix | ||
uses: ./.github/actions/nix | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
nix-cache-name: ${{ vars.NIX_CACHE_NAME }} | ||
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }} | ||
|
||
- name: Build wasm package | ||
run: | | ||
nix build -L .#noirc_abi_wasm | ||
build-acvm_js: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.noir-ref || 'master' }} | ||
|
||
- name: Setup Nix | ||
uses: ./.github/actions/nix | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
nix-cache-name: ${{ vars.NIX_CACHE_NAME }} | ||
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }} | ||
|
||
- name: Build wasm package | ||
run: | | ||
nix build -L .#acvm_js | ||
publish-es-packages: | ||
runs-on: ubuntu-latest | ||
needs: [build-acvm_js, build-noirc_abi_wasm, build-noir_wasm] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.noir-ref || 'master' }} | ||
|
||
- name: Setup Nix | ||
uses: ./.github/actions/nix | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
nix-cache-name: ${{ vars.NIX_CACHE_NAME }} | ||
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }} | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn install | ||
|
||
- name: Build ES Packages | ||
run: yarn prepare:publish | ||
|
||
- name: Prepare nightly version | ||
if: ${{ inputs.nightly }} | ||
run: | | ||
sudo apt-get install jq | ||
yarn nightly:version | ||
- name: Authenticate with npm | ||
run: "echo npmAuthToken: ${{ secrets.NPM_TOKEN }} > ~/.yarnrc.yml" | ||
|
||
- name: Publish ES Packages | ||
run: yarn publish:all --access public ${{ inputs.nightly && ' --tag nightly' }} |
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,26 @@ | ||
name: Publish Nightly release | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run a nightly release at 2 AM UTC | ||
- cron: "0 2 * * *" | ||
|
||
jobs: | ||
dispatch-publish-es: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to publish-nargo | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: publish-nargo.yml | ||
token: ${{ secrets.NOIR_REPO_TOKEN }} | ||
# Omitting a tag results in a nightly | ||
inputs: "{ \"publish\": true }" | ||
|
||
|
||
- name: Dispatch to publish-es-packages | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: publish-es-packages.yml | ||
token: ${{ secrets.NOIR_REPO_TOKEN }} | ||
inputs: "{ \"noir-ref\": \"${{ env.GITHUB_REF }}\", \"nightly\": true }" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.