Skip to content

Commit

Permalink
set release branches to only check with the least supported rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
bluejekyll committed Oct 23, 2023
1 parent 7a889f4 commit 1d0b804
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-check.yml
@@ -0,0 +1,33 @@
name: release-check

on:
push:
branches:
- release/**
pull_request:
branches:
- release/**

env:
CARGO_WS_VERSION: "0.2.42"

jobs:
## Run all default oriented feature sets across all platforms.
platform-matrix:
name: platform
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.64"

- uses: extractions/setup-just@v1

- name: just check
run: cargo check --workspace --all-targets --benches --examples --bins --tests
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- release/**
pull_request:
branches:
- main
- release/**
schedule:
- cron: "0 3 * * 4"

Expand All @@ -28,7 +26,7 @@ jobs:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@stable

- uses: extractions/setup-just@v1

- name: cargo install cargo-workspaces
Expand All @@ -51,7 +49,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview

- uses: extractions/setup-just@v1

- name: cargo install cargo-llvm-cov
Expand Down Expand Up @@ -93,7 +91,7 @@ jobs:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@stable

- uses: extractions/setup-just@v1

- name: cargo install cargo-workspaces
Expand Down Expand Up @@ -121,7 +119,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}

- uses: extractions/setup-just@v1

- name: cargo install cargo-workspaces
Expand Down Expand Up @@ -159,7 +157,7 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy

- uses: extractions/setup-just@v1

- name: cargo install cargo-workspaces
Expand Down Expand Up @@ -188,7 +186,7 @@ jobs:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@stable

- uses: extractions/setup-just@v1

- name: target/bind cache
Expand Down

0 comments on commit 1d0b804

Please sign in to comment.