summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2023-05-01 22:15:50 +0200
committerGitHub <noreply@github.com>2023-05-01 22:15:50 +0200
commitf716b605f3d11d4b7dadb9ecae7686f88ce8458e (patch)
tree5792accb026ba1537e868d55b141022a766b1d3d
parent1bd6db58307c1945c3b0cabec8d6663730394377 (diff)
ci: remove actions-rs actions (#5115)
-rw-r--r--.github/workflows/release.yml35
-rw-r--r--.github/workflows/workflow.yml48
2 files changed, 26 insertions, 57 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0a3e7ce36..f6799b98b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -92,11 +92,9 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- override: true
- profile: minimal
target: ${{ matrix.target }}
- name: Setup | Install cargo-wix [Windows]
@@ -108,20 +106,25 @@ jobs:
# cargo-wix does not require static crt
RUSTFLAGS: ""
- - name: Build | Build
- uses: actions-rs/cargo@v1.0.3
- with:
- command: build
- args: --release --locked --target ${{ matrix.target }}
- use-cross: ${{ matrix.os == 'ubuntu-latest' }}
+ - name: Setup | Install cross [Linux]
+ if: matrix.os == 'ubuntu-latest'
+ uses: taiki-e/install-action@cross
+
+ - name: Build | Build [Cargo]
+ 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]
continue-on-error: true
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
- uses: actions-rs/cargo@v1.0.3
- with:
- command: wix
- args: -v --no-build --nocapture -I install/windows/main.wxs --target ${{ matrix.target }} --output target/wix/starship-${{ matrix.target }}.msi
+ run: >
+ cargo wix -v --no-build --nocapture -I install/windows/main.wxs
+ --target ${{ matrix.target }}
+ --output target/wix/starship-${{ matrix.target }}.msi
- name: Post Build | Prepare artifacts [Windows]
if: matrix.os == 'windows-latest'
@@ -284,11 +287,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- profile: minimal
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Build | Publish
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 75e6d4508..6340e3b72 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -27,11 +27,8 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
- profile: minimal
components: rustfmt
- name: Build | Format
@@ -49,21 +46,15 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
- profile: minimal
components: clippy
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
- name: Build | Lint
- uses: actions-rs/cargo@v1.0.3
- with:
- command: clippy
- args: --workspace --locked --all-targets --all-features -- -D clippy::all
+ uses: giraffate/clippy-action@871cc4173f2594435c7ea6b0bce499cf6c2164a1
# Ensure that the project could be successfully compiled
cargo_check:
@@ -74,11 +65,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- profile: minimal
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
@@ -96,11 +83,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- profile: minimal
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
@@ -118,11 +101,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- profile: minimal
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
@@ -144,11 +123,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- profile: minimal
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
@@ -185,12 +160,10 @@ jobs:
# Install all the required dependencies for testing
- name: Setup | Rust
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: llvm-tools-preview
- profile: minimal
- override: true
- name: Setup | Cache
uses: Swatinem/rust-cache@v2
@@ -228,10 +201,7 @@ jobs:
- name: Build | Installer [Windows]
continue-on-error: true
if: matrix.os == 'windows-latest' && matrix.rust == 'stable'
- uses: actions-rs/cargo@v1.0.3
- with:
- command: wix
- args: --dbg-build -v --nocapture -I install/windows/main.wxs
+ run: cargo wix --dbg-build -v --nocapture -I install/windows/main.wxs
- name: Build | Chocolatey Package [Windows]
continue-on-error: true