From 699f4bf812c9ea60935d579beeb319b163faee33 Mon Sep 17 00:00:00 2001 From: Steve Degosserie <723552+stiiifff@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:04:23 +0200 Subject: [PATCH] Tweak ci action (#201) (cherry picked from commit f7758ed0be1e9183594d30a6c5c77c4656ca7a0a) --- .github/workflows/basic.yml | 75 ------------------------------------- .github/workflows/check.yml | 5 +-- 2 files changed, 2 insertions(+), 78 deletions(-) delete mode 100644 .github/workflows/basic.yml diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml deleted file mode 100644 index 60716a3d..00000000 --- a/.github/workflows/basic.yml +++ /dev/null @@ -1,75 +0,0 @@ -# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml -on: [push, pull_request] - -name: Basic - -env: - RUST_BACKTRACE: 1 - CARGO_TERM_COLOR: always - -jobs: - unit-test: - name: Test Suite - runs-on: ubuntu-latest - steps: - - name: checkout sources - uses: actions/checkout@v3 - - - name: Install latest stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.71.0 - target: wasm32-unknown-unknown - override: true - - - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --locked - - lints: - name: Lints - runs-on: ubuntu-latest - steps: - - name: checkout sources - uses: actions/checkout@v3 - - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.71.0 - override: true - components: rustfmt, clippy - - - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-targets -- -D warnings - - # schema: - # name: Schema - # runs-on: ubuntu-latest - # steps: - # - name: Checkout sources - # uses: actions/checkout@v2 - - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: 1.66.0 - # override: true - # components: rustfmt, clippy - - # - name: Gen schemas - # run: ./scripts/schema.sh diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 288724c7..4c690f82 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,7 +11,7 @@ jobs: check: runs-on: ubuntu-latest steps: - - name: Checkout sources + - name: checkout sources uses: actions/checkout@v3 - name: Install stable toolchain @@ -21,7 +21,6 @@ jobs: toolchain: 1.76.0 override: true components: rustfmt, clippy - - name: Run cargo fmt uses: actions-rs/cargo@v1 with: @@ -68,4 +67,4 @@ jobs: command: wasm args: --locked env: - RUSTFLAGS: "-C link-arg=-s" \ No newline at end of file + RUSTFLAGS: "-C link-arg=-s"