-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (35 loc) · 951 Bytes
/
stylecheck.yml
File metadata and controls
39 lines (35 loc) · 951 Bytes
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
name: Style check
on:
pull_request:
branches:
- jdk-11
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
style-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup environments
run: ./.github/scripts/ci-setup.sh
- name: Style checks
run: ./.github/scripts/ci-style.sh
msrv:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install cargo-msrv
run: cargo install cargo-msrv
# Verify the MSRV defined in Cargo.toml
- name: Verify MSRV
run: cargo msrv verify --path mmtk
# If the previous step fails, find MSRV
- name: Find MSRV
if: failure()
run: cargo msrv find --path mmtk