Skip to content

Commit

Permalink
Fix CI warnings (#69)
Browse files Browse the repository at this point in the history
* ci: ♻️ Avoid using actions-rs actions

* ci: ⬆️ Upgrade checkout version
  • Loading branch information
SergioGasquez authored Feb 20, 2023
1 parent 35e38a6 commit 46d58f1
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 71 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/arm_linux_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,16 @@ jobs:
export TARGET_CC=clang-14
export TARGET_AR=llvm-ar-14
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
override: true
target: ${{ inputs.target }}

- uses: Swatinem/rust-cache@v1

- uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: --release --all --target ${{ inputs.target }}
- run: cargo install cross

- run: cross build --release --all --target ${{ inputs.target }}

- uses: papeloto/action-zip@v1
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Setup | Std
run: rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
- name: Setup | Default to stable
run: rustup default stable
components: rustfmt, clippy, rust-src
- name: Build | Fmt Check
run: cargo fmt -- --check
- name: Build | Clippy
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,16 @@ jobs:
sudo apt-get update
sudo apt-get install musl-tools libudev-dev
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: ${{ inputs.target }}

- uses: Swatinem/rust-cache@v1

- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all --target ${{ inputs.target }}
- run: cargo build --release --all --target ${{ inputs.target }}

- uses: papeloto/action-zip@v1
with:
Expand All @@ -50,4 +47,4 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ldproxy-${{ inputs.target }}.zip
tag: ${{ github.ref }}
tag: ${{ github.ref }}
12 changes: 4 additions & 8 deletions .github/workflows/publish-cargo-pio-dry-run.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: PublishCargoPioDryRun

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publishdryrun:
name: Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
components: rust-src
- name: Build | Publish Dry Run
run: cd cargo-pio; cargo publish --dry-run
14 changes: 4 additions & 10 deletions .github/workflows/publish-cargo-pio.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: PublishCargoPio

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publish:
Expand All @@ -11,17 +10,12 @@ jobs:
CRATE_NAME: cargo-pio
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
- name: Setup | Default to nightly
run: rustup default nightly
component: rust-src
- name: Login
run: cargo login ${{ secrets.crates_io_token }}
- name: Build | Publish
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: PublishDryRun

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publishdryrun:
name: Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
components: rust-src
- name: Build | Publish Dry Run
run: cargo publish --dry-run
12 changes: 4 additions & 8 deletions .github/workflows/publish-ldproxy-dry-run copy.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: PublishLdProxyDryRun

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publishdryrun:
name: Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
components: rust-src
- name: Build | Publish Dry Run
run: cd ldproxy; cargo publish --dry-run
12 changes: 4 additions & 8 deletions .github/workflows/publish-ldproxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: PublishLdProxy

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publish:
Expand All @@ -11,15 +10,12 @@ jobs:
CRATE_NAME: ldproxy
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
components: rust-src
- name: Login
run: cargo login ${{ secrets.crates_io_token }}
- name: Build | Publish
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish

on:
workflow_dispatch
on: workflow_dispatch

jobs:
publish:
Expand All @@ -11,15 +10,12 @@ jobs:
CRATE_NAME: embuild
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup | Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
- name: Setup | Std
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default nightly
components: rust-src
- name: Setup | Default to nightly
run: rustup default nightly
- name: Login
Expand Down

0 comments on commit 46d58f1

Please sign in to comment.