Skip to content

Commit

Permalink
chore: Update actions (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
AzHicham authored Apr 29, 2023
1 parent c3d0664 commit b1bcc3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.68.2

jobs:
validate:
runs-on: ubuntu-20.04
Expand All @@ -25,10 +29,10 @@ jobs:
needs: [validate]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
- name: Install dependencies
run: make install-deps-apt
- uses: katyo/publish-crates@v2
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.68.2

jobs:
build:
Expand All @@ -20,10 +21,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
Expand All @@ -42,10 +43,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
- name: Install dependencies ubuntu
run: make install-deps-apt
Expand All @@ -58,10 +58,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
toolchain: ${{ env.RUST_VERSION }}
components: clippy, rustfmt
- uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit b1bcc3f

Please sign in to comment.