diff --git a/.github/workflows/publish-nargo-feature.yml b/.github/workflows/publish-nargo-feature.yml new file mode 100644 index 00000000000..c8ab931f491 --- /dev/null +++ b/.github/workflows/publish-nargo-feature.yml @@ -0,0 +1,46 @@ +name: Publish Nargo Feature + +on: + pull_request: + branches: + - '*' + +permissions: + # Necessary to upload new release artifacts + contents: write + +jobs: + build-linux: + runs-on: ubuntu-22.04 + env: + CROSS_CONFIG: ${{ github.workspace }}/.github/Cross.toml + + strategy: + fail-fast: false + matrix: + target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl] + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Setup toolchain + uses: dtolnay/rust-toolchain@1.66.0 + with: + targets: ${{ matrix.target }} + + - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.target }} + cache-on-failure: true + save-if: ${{ github.event_name != 'merge_group' }} + + - name: Install Cross + uses: taiki-e/install-action@v2 + with: + tool: cross@0.2.5 + + - name: Build Nargo + run: cross build --package nargo_cli --release --target=${{ matrix.target }} --no-default-features --features "${{ github.event.pull_request.body }} noirc_frontend/aztec"