mirror of
https://github.com/starship/starship.git
synced 2025-02-23 22:01:08 +01:00
ci: revert back to actions-rs (#1457)
This commit is contained in:
parent
ec76fafff0
commit
de041dd39d
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -14,9 +14,11 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
toolchain: stable
|
||||||
|
profile: minimal
|
||||||
|
override: true
|
||||||
|
|
||||||
- name: Build | Publish
|
- name: Build | Publish
|
||||||
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
||||||
@ -70,10 +72,12 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
toolchain: stable
|
||||||
targets: ${{ matrix.target }}
|
override: true
|
||||||
|
profile: minimal
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Setup | musl tools
|
- name: Setup | musl tools
|
||||||
if: matrix.target == 'x86_64-unknown-linux-musl'
|
if: matrix.target == 'x86_64-unknown-linux-musl'
|
||||||
|
29
.github/workflows/workflow.yml
vendored
29
.github/workflows/workflow.yml
vendored
@ -19,9 +19,11 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Build | Format
|
- name: Build | Format
|
||||||
@ -46,13 +48,18 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Build | Lint
|
- 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
|
# Ensure that the project could be successfully compiled
|
||||||
cargo_check:
|
cargo_check:
|
||||||
@ -73,9 +80,11 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
toolchain: stable
|
||||||
|
profile: minimal
|
||||||
|
override: true
|
||||||
|
|
||||||
- name: Build | Check
|
- name: Build | Check
|
||||||
run: cargo check --all
|
run: cargo check --all
|
||||||
@ -106,9 +115,11 @@ jobs:
|
|||||||
|
|
||||||
# Install all the required dependencies for testing
|
# Install all the required dependencies for testing
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: ATiltedTree/setup-rust@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
rust-version: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
|
profile: minimal
|
||||||
|
override: true
|
||||||
|
|
||||||
# Install dotnet at a fixed version
|
# Install dotnet at a fixed version
|
||||||
- name: Setup | DotNet
|
- name: Setup | DotNet
|
||||||
|
Loading…
Reference in New Issue
Block a user