Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
chore: match GitHub Actions from main
Browse files Browse the repository at this point in the history
  • Loading branch information
nashiradeer committed Jun 11, 2024
1 parent 86460b2 commit b856e06
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check-legacy-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check - Legacy v2

on:
push:
branches: ["legacy/v2"]
pull_request:
branches: ["legacy/v2"]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.75"

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ env.RUST_VERSION }}
run: rustup install ${{ env.RUST_VERSION }}
- name: Set Rust ${{ env.RUST_VERSION }} as default
run: rustup default ${{ env.RUST_VERSION }}
- name: Check with default features
run: cargo check --config 'build.rustflags = ["-Dwarnings"]'
- name: Check with all features
run: cargo check --config 'build.rustflags = ["-Dwarnings"]' --all-features
- name: Install Clippy
run: rustup component add clippy
- name: Run Clippy with default features
run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]'
- name: Run Clippy with all features
run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]' --all-features
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.75"
RUST_VERSION: "1.78"

jobs:
check:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test-legacy-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test - Legacy v2

on:
push:
branches: ["legacy/v2"]
pull_request:
branches: ["legacy/v2"]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.75"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ env.RUST_VERSION }}
run: rustup install ${{ env.RUST_VERSION }}
- name: Set Rust ${{ env.RUST_VERSION }} as default
run: rustup default ${{ env.RUST_VERSION }}
- name: Test with default features
run: cargo test
- name: Test with all features
run: cargo test --all-features
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.75"
RUST_VERSION: "1.78"

jobs:
test:
Expand Down

0 comments on commit b856e06

Please sign in to comment.