Remove other action-rs
This commit is contained in:
1 parent
5f25f99f91
commit
e122ff2c05
2 files changed
+18
-32
No files matched your search
@@ -111,12 +111,11 @@ jobs:
|
||||
libgtk2.0-dev:${{ matrix.arch }} \
|
||||
libglib2.0-dev:${{ matrix.arch }}
|
||||
- name: Install ${{ matrix.arch }} Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: ${{ matrix.target }}
|
||||
profile: minimal
|
||||
run: |
|
||||
rustup install stable-${TARGET}
|
||||
rustup override set stable-${TARGET}
|
||||
env:
|
||||
TARGET: ${{ matrix.target }}
|
||||
- name: Build
|
||||
run: |
|
||||
cargo build --release --all-features --target=${TARGET}
|
||||
@@ -141,14 +140,11 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install latest rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
run: |
|
||||
rustup toolchain install stable
|
||||
- name: Install toml-cli
|
||||
uses: actions-rs/install@v0.1
|
||||
with:
|
||||
crate: toml-cli
|
||||
version: latest
|
||||
run: |
|
||||
cargo install toml-cli
|
||||
- name: Get project version
|
||||
id: toml
|
||||
run: |
|
||||
|
||||
@@ -13,20 +13,11 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install -y aptitude
|
||||
sudo aptitude install -y libgstrtspserver-1.0-dev libgstreamer1.0-dev libgtk2.0-dev
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: clippy
|
||||
override: true
|
||||
- name: Run clippy action to produce annotations
|
||||
uses: actions-rs/clippy-check@v1
|
||||
if: steps.check_permissions.outputs.has-permission
|
||||
with:
|
||||
toolchain: nightly
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --workspace --all-targets --all-features
|
||||
- name: Run clippy manually without annotations
|
||||
if: ${{ !steps.check_permissions.outputs.has-permission }}
|
||||
- name: Install nightly rust
|
||||
run: |
|
||||
rustup toolchain install nightly --component cargo
|
||||
rustup override set nightly
|
||||
- name: Run clippy manually
|
||||
run: cargo +nightly clippy --workspace --all-targets --all-features
|
||||
|
||||
check_fmt:
|
||||
@@ -34,11 +25,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rustfmt
|
||||
override: true
|
||||
- name: Install nightly rust
|
||||
run: |
|
||||
rustup toolchain install nightly --component rustfmt
|
||||
rustup override set nightly
|
||||
- name: rustfmt
|
||||
run: |
|
||||
cargo +nightly fmt --all -- --check
|
||||
|
||||
Reference in new issue
Block a user