chore: Make one input public in simple assertion program (#2949) #1
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
name: 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 | |
update-lockfile: | |
name: Update lockfile | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.release-pr }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout release branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ fromJSON(needs.release-please.outputs.release-pr).headBranchName }} | |
token: ${{ secrets.NOIR_RELEASES_TOKEN }} | |
- name: Setup toolchain | |
uses: dtolnay/[email protected] | |
- name: Update lockfile | |
run: | | |
cargo update --workspace | |
- name: Configure git | |
run: | | |
git config user.name kevaundray | |
git config user.email [email protected] | |
- name: Commit updates | |
run: | | |
git add Cargo.lock | |
git commit -m 'chore: Update lockfile' | |
git push | |
build-binaries: | |
name: Build binaries | |
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: publish-nargo.yml | |
repo: noir-lang/noir | |
ref: master | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: '{ "tag": "${{ needs.release-please.outputs.tag-name }}", "publish": true }' | |
publish-wasm: | |
name: Publish noir_wasm package | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.tag-name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch to noir_wasm | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish-noir-wasm.yml | |
ref: master | |
token: ${{ secrets.NOIR_REPO_TOKEN }} | |
publish-noir-js: | |
name: Publish noir_js package | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.tag-name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch to noir_wasm | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish-noir-js.yml | |
ref: master | |
token: ${{ secrets.NOIR_REPO_TOKEN }} | |
publish-source-resolver: | |
name: Publish source resolver package | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.tag-name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch to source resolver | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish-source-resolver.yml | |
ref: master | |
token: ${{ secrets.NOIR_REPO_TOKEN }} | |
publish-abi-wasm: | |
name: Dispatch to publish-abi_wasm workflow | |
needs: [release-please] | |
if: ${{ needs.release-please.outputs.tag-name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger publish-abi_wasm.yml workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: publish-abi_wasm.yml | |
repo: ${{ github.repository }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: '{ "noir-ref": "${{ needs.release-please.outputs.tag-name }}" }' | |
publish-acvm: | |
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: publish-acvm.yml | |
ref: master | |
inputs: '{ "acvm-ref": "${{ needs.release-please.outputs.tag-name }}" }' | |
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: publish-acvm-js.yml | |
ref: master | |
inputs: '{ "acvm-ref": "${{ needs.release-please.outputs.tag-name }}" }' |