1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-24 13:47:38 +00:00

ci: revert back to actions-rs (#1457)

This commit is contained in:
Tilmann Meyer 2020-07-08 17:53:03 +02:00 committed by GitHub
parent ec76fafff0
commit de041dd39d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 14 deletions

View File

@ -14,9 +14,11 @@ jobs:
uses: actions/checkout@v2
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: stable
toolchain: stable
profile: minimal
override: true
- name: Build | Publish
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
@ -70,10 +72,12 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: stable
targets: ${{ matrix.target }}
toolchain: stable
override: true
profile: minimal
target: ${{ matrix.target }}
- name: Setup | musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'

View File

@ -19,9 +19,11 @@ jobs:
uses: actions/checkout@v2
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: stable
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Build | Format
@ -46,13 +48,18 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: stable
toolchain: stable
override: true
profile: minimal
components: clippy
- name: Build | Lint
run: cargo clippy --all-targets --all-features -- -D clippy::all
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D clippy::all
# Ensure that the project could be successfully compiled
cargo_check:
@ -73,9 +80,11 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: stable
toolchain: stable
profile: minimal
override: true
- name: Build | Check
run: cargo check --all
@ -106,9 +115,11 @@ jobs:
# Install all the required dependencies for testing
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
uses: actions-rs/toolchain@v1
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
# Install dotnet at a fixed version
- name: Setup | DotNet