ci: remove actions-rs actions (#5115)
This commit is contained in:
parent
1bd6db5830
commit
f716b605f3
|
@ -92,11 +92,9 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
|
||||||
profile: minimal
|
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Setup | Install cargo-wix [Windows]
|
- name: Setup | Install cargo-wix [Windows]
|
||||||
|
@ -108,20 +106,25 @@ jobs:
|
||||||
# cargo-wix does not require static crt
|
# cargo-wix does not require static crt
|
||||||
RUSTFLAGS: ""
|
RUSTFLAGS: ""
|
||||||
|
|
||||||
- name: Build | Build
|
- name: Setup | Install cross [Linux]
|
||||||
uses: actions-rs/cargo@v1.0.3
|
if: matrix.os == 'ubuntu-latest'
|
||||||
with:
|
uses: taiki-e/install-action@cross
|
||||||
command: build
|
|
||||||
args: --release --locked --target ${{ matrix.target }}
|
- name: Build | Build [Cargo]
|
||||||
use-cross: ${{ matrix.os == 'ubuntu-latest' }}
|
if: matrix.os != 'ubuntu-latest'
|
||||||
|
run: cargo build --release --locked --target ${{ matrix.target }}
|
||||||
|
|
||||||
|
- name: Build | Build [Cross]
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
run: cross build --release --locked --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build | Installer [Windows]
|
- name: Build | Installer [Windows]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
|
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
|
||||||
uses: actions-rs/cargo@v1.0.3
|
run: >
|
||||||
with:
|
cargo wix -v --no-build --nocapture -I install/windows/main.wxs
|
||||||
command: wix
|
--target ${{ matrix.target }}
|
||||||
args: -v --no-build --nocapture -I install/windows/main.wxs --target ${{ matrix.target }} --output target/wix/starship-${{ matrix.target }}.msi
|
--output target/wix/starship-${{ matrix.target }}.msi
|
||||||
|
|
||||||
- name: Post Build | Prepare artifacts [Windows]
|
- name: Post Build | Prepare artifacts [Windows]
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
@ -284,11 +287,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Build | Publish
|
- name: Build | Publish
|
||||||
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
|
@ -27,11 +27,8 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
profile: minimal
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Build | Format
|
- name: Build | Format
|
||||||
|
@ -49,21 +46,15 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
profile: minimal
|
|
||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Build | Lint
|
- name: Build | Lint
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: giraffate/clippy-action@871cc4173f2594435c7ea6b0bce499cf6c2164a1
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --workspace --locked --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:
|
||||||
|
@ -74,11 +65,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
@ -96,11 +83,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
@ -118,11 +101,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
@ -144,11 +123,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
@ -185,12 +160,10 @@ jobs:
|
||||||
|
|
||||||
# Install all the required dependencies for testing
|
# Install all the required dependencies for testing
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
components: llvm-tools-preview
|
components: llvm-tools-preview
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Setup | Cache
|
- name: Setup | Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
@ -228,10 +201,7 @@ jobs:
|
||||||
- name: Build | Installer [Windows]
|
- name: Build | Installer [Windows]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: matrix.os == 'windows-latest' && matrix.rust == 'stable'
|
if: matrix.os == 'windows-latest' && matrix.rust == 'stable'
|
||||||
uses: actions-rs/cargo@v1.0.3
|
run: cargo wix --dbg-build -v --nocapture -I install/windows/main.wxs
|
||||||
with:
|
|
||||||
command: wix
|
|
||||||
args: --dbg-build -v --nocapture -I install/windows/main.wxs
|
|
||||||
|
|
||||||
- name: Build | Chocolatey Package [Windows]
|
- name: Build | Chocolatey Package [Windows]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
Loading…
Reference in New Issue