Skip to content

Commit 0e0efd8

Browse files
committed
test nightly workflow
1 parent ce83714 commit 0e0efd8

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

.github/workflows/_build-release.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ jobs:
5555

5656
#- target: aarch64-pc-windows-msvc
5757
# os: windows-latest
58-
58+
env:
59+
# TODO(#1915): Use stable toolchain once stwo is stable.
60+
RUST_NIGHTLY_TOOLCHAIN: "nightly-2025-01-02"
5961
steps:
6062
- uses: actions/checkout@v4
6163
with:
@@ -75,7 +77,15 @@ jobs:
7577
run: echo "CARGO=cross" >> $GITHUB_ENV
7678

7779
- name: Build
78-
run: ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }}
80+
run: ${{ env.CARGO }} build --release --locked --target ${{ matrix.target }} --workspace --exclude scarb-prove
81+
82+
- uses: dtolnay/rust-toolchain@master
83+
with:
84+
target: ${{ matrix.target }}
85+
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
86+
87+
- name: Build scarb-prove
88+
run: ${{ env.CARGO }} +${{ env.RUST_NIGHTLY_TOOLCHAIN }} build --release --locked --target ${{ matrix.target }} --workspace --exclude scarb-prove
7989

8090
- name: Create archive
8191
run: cargo xtask create-archive

.github/workflows/_check-release.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,20 @@ jobs:
3434
os: macos-14
3535
- name: windows x86-64
3636
os: windows-latest
37+
env:
38+
# TODO(#1915): Use stable toolchain once stwo is stable.
39+
RUST_NIGHTLY_TOOLCHAIN: "nightly-2025-01-02"
3740
steps:
3841
- uses: actions/checkout@v4
3942
with:
4043
ref: ${{ inputs.ref }}
4144
- uses: dtolnay/rust-toolchain@stable
42-
- run: cargo test --profile=ci --no-fail-fast
43-
45+
- run: cargo test --profile=ci --no-fail-fast --workspace --exclude scarb-prove
46+
- uses: dtolnay/rust-toolchain@master
47+
with:
48+
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
49+
- run: cargo +${{ env.RUST_NIGHTLY_TOOLCHAIN }} test --profile=ci --no-fail-fast --package scarb-prove
50+
4451
snforge-init:
4552
runs-on: ubuntu-latest
4653
steps:

0 commit comments

Comments
 (0)