-
Notifications
You must be signed in to change notification settings - Fork 74
77 lines (72 loc) · 2.17 KB
/
_check-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release Check
on:
workflow_dispatch:
inputs:
ref:
required: false
type: string
fail-fast:
required: false
type: boolean
default: true
workflow_call:
inputs:
ref:
required: false
type: string
fail-fast:
required: false
type: boolean
default: true
env:
# TODO(#1915): Use stable toolchain once stwo is stable.
RUST_NIGHTLY_TOOLCHAIN: "nightly-2025-01-02"
jobs:
test:
name: test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: ${{ inputs.fail-fast }}
matrix:
include:
- name: linux x86-64
os: ubuntu-latest
- name: macos aarch64
os: macos-14
- name: windows x86-64
os: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --profile=ci --no-fail-fast --workspace --exclude scarb-prove --exclude scarb-verify
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
- run: cargo +${{ env.RUST_NIGHTLY_TOOLCHAIN }} test --profile=ci --no-fail-fast -p scarb-prove -p scarb-verify
snforge-init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: foundry-rs/setup-snfoundry@v4
- run: cargo test --profile=ci --package scarb --test snforge_init new_simple -- --ignored
test-prebuilt-plugins:
name: test prebuilt plugins ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
# This is isolated, so it can be run on more platforms.
strategy:
fail-fast: false
matrix:
platform:
# linux x86-64 and windows x86-64 are tested in the main test job.
- name: macos arm64
os: macos-latest
- name: macos x86-64
os: macos-13
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run prebuilt plugin tests
run: cargo test -p scarb --profile=ci --test proc_macro_prebuilt