|
29 | 29 | - uses: Swatinem/rust-cache@v2
|
30 | 30 | - uses: taiki-e/install-action@nextest
|
31 | 31 | - name: nextest archive
|
32 |
| - run: cargo nextest archive --workspace --all-features --cargo-profile ci --archive-file 'nextest-archive-${{ matrix.platform.os }}.tar.zst' |
| 32 | + run: cargo nextest archive --workspace --all-features --cargo-profile ci --archive-file 'nextest-archive-${{ matrix.platform.os }}.tar.zst' --exclude scarb-prove |
33 | 33 | - uses: actions/upload-artifact@v4
|
34 | 34 | with:
|
35 | 35 | name: nextest-archive-${{ matrix.platform.os }}
|
|
82 | 82 | - name: run tests
|
83 | 83 | run: cargo test -p scarb-metadata
|
84 | 84 |
|
| 85 | + test-scarb-prove: |
| 86 | + name: test scarb-prove ${{ matrix.platform.name }} |
| 87 | + runs-on: ${{ matrix.platform.os }} |
| 88 | + env: |
| 89 | + # TODO(#1915): Use stable toolchain once stwo is stable. |
| 90 | + RUST_TOOLCHAIN: "nightly-2025-01-02" |
| 91 | + strategy: |
| 92 | + fail-fast: false |
| 93 | + matrix: |
| 94 | + platform: |
| 95 | + - name: linux x86-64 |
| 96 | + os: ubuntu-latest |
| 97 | + - name: windows x86-64 |
| 98 | + os: windows-latest |
| 99 | + steps: |
| 100 | + - uses: actions/checkout@v4 |
| 101 | + - uses: dtolnay/rust-toolchain@stable |
| 102 | + - uses: dtolnay/rust-toolchain@master |
| 103 | + with: |
| 104 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
| 105 | + - uses: Swatinem/rust-cache@v2 |
| 106 | + - name: Build |
| 107 | + run: cargo +stable build --workspace --all-features --exclude scarb-prove |
| 108 | + - name: Run scarb-prove tests |
| 109 | + run: cargo +${{ env.RUST_TOOLCHAIN }} test -p scarb-prove |
| 110 | + |
85 | 111 | test-prebuilt-plugins:
|
86 | 112 | name: test prebuilt plugins ${{ matrix.platform.name }}
|
87 | 113 | runs-on: ${{ matrix.platform.os }}
|
@@ -113,15 +139,38 @@ jobs:
|
113 | 139 | - uses: dtolnay/rust-toolchain@stable
|
114 | 140 | - uses: Swatinem/rust-cache@v2
|
115 | 141 | - run: cargo fmt --check
|
116 |
| - - run: cargo clippy --all-targets --all-features -- --no-deps |
| 142 | + # TODO(#1915): Build all crates with stable toolchain once stwo is stable. |
| 143 | + - run: cargo clippy --all-targets --all-features --workspace --exclude scarb-prove -- --no-deps |
117 | 144 | env:
|
118 | 145 | # Make sure CI fails on all warnings, including Clippy lints.
|
119 | 146 | RUSTFLAGS: "-Dwarnings"
|
120 |
| - - run: cargo doc --all-features --no-deps |
| 147 | + - run: cargo doc --all-features --no-deps --workspace --exclude scarb-prove |
121 | 148 | env:
|
122 | 149 | # Make sure CI fails on all warnings, including Clippy lints.
|
123 | 150 | RUSTDOCFLAGS: "-Dwarnings"
|
124 | 151 |
|
| 152 | + check-rust-scarb-prove: |
| 153 | + name: check-rust (scarb-prove) |
| 154 | + runs-on: ubuntu-latest |
| 155 | + env: |
| 156 | + # TODO(#1915): Use stable toolchain once stwo is stable. |
| 157 | + RUST_TOOLCHAIN: "nightly-2025-01-02" |
| 158 | + steps: |
| 159 | + - uses: actions/checkout@v4 |
| 160 | + - uses: dtolnay/rust-toolchain@master |
| 161 | + with: |
| 162 | + toolchain: ${{ env.RUST_TOOLCHAIN }} |
| 163 | + components: rustfmt, clippy |
| 164 | + - uses: Swatinem/rust-cache@v2 |
| 165 | + - run: cargo +${{ env.RUST_TOOLCHAIN }} clippy --all-targets --all-features -p scarb-prove -- --no-deps |
| 166 | + env: |
| 167 | + # Make sure CI fails on all warnings, including Clippy lints. |
| 168 | + RUSTFLAGS: "-Dwarnings" |
| 169 | + - run: cargo +${{ env.RUST_TOOLCHAIN }} doc --all-features --no-deps -p scarb-prove |
| 170 | + env: |
| 171 | + # Make sure CI fails on all warnings, including Clippy lints. |
| 172 | + RUSTDOCFLAGS: "-Dwarnings" |
| 173 | + |
125 | 174 | check-website:
|
126 | 175 | runs-on: ubuntu-latest
|
127 | 176 | defaults:
|
|
0 commit comments