Skip to content

Commit

Permalink
try rust version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupert Saint Staccato committed Feb 9, 2025
1 parent 15fd89c commit 4fbee7d
Showing 1 changed file with 9 additions and 70 deletions.
79 changes: 9 additions & 70 deletions .github/workflows/rust-versions.yaml
Original file line number Diff line number Diff line change
@@ -1,70 +1,16 @@
# testing future versions of rust
name: rust-versions
on:
push:
tags: # only on releases, not RC, since we've tested already
- "[0-9]+.[0-9]+.[0-9]+"
branches: ["**"] # glob pattern to allow slash /
pull_request:
types:
- opened
- synchronize
branches:
- "release**"
- "main**"
branches: ["ci-bins*"] # glob pattern to allow slash /
schedule:
- cron: "30 00 * * *"

# TODO: use ci run matrix options

jobs:
builds-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup env
uses: ./.github/actions/build_env

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: install rustfmt clippy
shell: bash
run: rustup component add rustfmt clippy

- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests -- -D warnings

builds-beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup env
uses: ./.github/actions/build_env

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true

- name: install rustfmt clippy
shell: bash
run: rustup component add rustfmt clippy

- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests -- -D warnings

builds-nightly:
builds:
strategy:
matrix:
channel: ["stable", "beta", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -75,15 +21,8 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
toolchain: ${{matrix.channel}}
override: true

- name: install rustfmt clippy
shell: bash
run: rustup component add rustfmt clippy

- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --tests -- -D warnings
- name: debug build
run: cargo b -p libra

0 comments on commit 4fbee7d

Please sign in to comment.