update actions

This commit is contained in:
mxve 2023-10-16 16:11:56 +02:00
parent 4273d00417
commit eeacb15d6f
2 changed files with 16 additions and 28 deletions

View File

@ -1,9 +1,3 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
#
# While our "example" application has the platform-specific code,
# for simplicity we are compiling and testing everything on the Ubuntu environment only.
# For multi-OS testing see the `cross.yml` workflow.
on: [push, pull_request] on: [push, pull_request]
name: lint name: lint
@ -14,18 +8,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install stable toolchain - name: Install stable toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
profile: minimal
toolchain: stable toolchain: stable
override: true
- name: Run cargo check - name: Run cargo check
uses: actions-rs/cargo@v1 uses: clechasseur/rs-cargo@v2
continue-on-error: true # WARNING: only for this example, remove it! continue-on-error: true
with: with:
command: check command: check
@ -34,18 +26,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install stable toolchain - name: Install stable toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
profile: minimal
toolchain: stable toolchain: stable
override: true
- name: Run cargo test - name: Run cargo test
uses: actions-rs/cargo@v1 uses: clechasseur/rs-cargo@v2
continue-on-error: true # WARNING: only for this example, remove it! continue-on-error: true
with: with:
command: test command: test
@ -54,26 +44,24 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Install stable toolchain - name: Install stable toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
profile: minimal
toolchain: stable toolchain: stable
override: true
components: rustfmt, clippy components: rustfmt, clippy
- name: Run cargo fmt - name: Run cargo fmt
uses: actions-rs/cargo@v1 uses: clechasseur/rs-cargo@v2
continue-on-error: true # WARNING: only for this example, remove it! continue-on-error: true
with: with:
command: fmt command: fmt
args: --all -- --check args: --all -- --check
- name: Run cargo clippy - name: Run cargo clippy
uses: actions-rs/cargo@v1 uses: clechasseur/rs-cargo@v2
continue-on-error: true # WARNING: only for this example, remove it! continue-on-error: true
with: with:
command: clippy command: clippy
args: -- -D warnings args: -- -D warnings

View File

@ -9,7 +9,7 @@ jobs:
create-release: create-release:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1 - uses: taiki-e/create-gh-release-action@v1
with: with:
draft: true draft: true
@ -29,7 +29,7 @@ jobs:
os: windows-latest os: windows-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1 - uses: taiki-e/upload-rust-binary-action@v1
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}