Skip to content

Commit

Permalink
ci: Add prover to Rusk build workflow features
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Dec 21, 2024
1 parent 0ac04cd commit 431038e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/rusk_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
features:
description: "Choose features to build (JSON array)"
required: true
default: "[\"default\", \"archive\"]"
default: "[\"default\", \"archive\", \"prover\"]"

jobs:
config:
Expand Down Expand Up @@ -77,18 +77,31 @@ jobs:
run: rustup target add aarch64-apple-darwin
if: ${{ matrix.os == 'macos-15' }}

- name: Check for Prover Features
id: config
run: |
echo "Checking feature requirements..."
if [[ "${{ matrix.feature }}" == *"prover"* ]]; then
echo "NO_DEFAULT_FEATURES=--no-default-features" >> $GITHUB_ENV
echo "SKIP_WASM=true" >> $GITHUB_ENV
else
echo "NO_DEFAULT_FEATURES=" >> $GITHUB_ENV
echo "SKIP_WASM=false" >> $GITHUB_ENV
fi
- name: Compile keys
shell: bash
run: make keys

- name: Compile WASM Contracts
if: ${{ env.SKIP_WASM != 'true' }}
shell: bash
run: make wasm

- name: Build Rusk binary
shell: bash
working-directory: ./rusk
run: cargo build --release --features "${{ matrix.feature }}" ${{ matrix.flags }}
run: cargo build --release ${{ env.NO_DEFAULT_FEATURES }} --features "${{ matrix.feature }}" ${{ matrix.flags }}

- name: Extract Version
run: |
Expand Down

0 comments on commit 431038e

Please sign in to comment.