Add names for all CI operations

This commit is contained in:
Philipp Oppermann
2020-07-16 17:10:50 +02:00
parent 263e852dcc
commit da0ee38f09

View File

@@ -23,14 +23,17 @@ jobs:
] ]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Repository
- uses: actions-rs/toolchain@v1 uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
- name: "Install `rust-src` Rustup Component" - name: Install `rust-src` Rustup Component
run: rustup component add rust-src run: rustup component add rust-src
- uses: actions-rs/cargo@v1 - name: Run `cargo check`
uses: actions-rs/cargo@v1
with: with:
command: check command: check
@@ -45,16 +48,19 @@ jobs:
] ]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- uses: actions-rs/toolchain@v1 - name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
- name: "Install bootimage" - name: Install bootimage
run: cargo install bootimage --debug --git https://github.com/rust-osdev/bootimage.git --branch Zbuild-std run: cargo install bootimage --debug --git https://github.com/rust-osdev/bootimage.git --branch Zbuild-std
- uses: actions/checkout@v2 - name: Checkout Repository
- name: "Install Rustup Components" uses: actions/checkout@v2
- name: Install Rustup Components
run: rustup component add rust-src llvm-tools-preview run: rustup component add rust-src llvm-tools-preview
- uses: actions-rs/cargo@v1 - name: Run `cargo bootimage`
uses: actions-rs/cargo@v1
with: with:
command: bootimage command: bootimage
@@ -62,14 +68,17 @@ jobs:
name: Rustfmt name: Rustfmt
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Repository
- uses: actions-rs/toolchain@v1 uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
components: rustfmt components: rustfmt
override: true override: true
- uses: actions-rs/cargo@v1 - name: Run `cargo fmt`
uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
args: --all -- --check args: --all -- --check
@@ -78,14 +87,17 @@ jobs:
name: Clippy name: Clippy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Repository
- uses: actions-rs/toolchain@v1 uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
components: clippy, rust-src components: clippy, rust-src
override: true override: true
- uses: actions-rs/cargo@v1 - name: Run `cargo clippy`
uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
args: -- -D warnings args: -- -D warnings