ci: Update MSRV jobs
- Fix msrv-all enabling ruma-macros' nightly-only feature - Test ruma-client in msrv-all, remove separate job
This commit is contained in:
parent
0e8388abab
commit
43abef7e1f
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -76,9 +76,6 @@ jobs:
|
|||||||
- name: Check All Features
|
- name: Check All Features
|
||||||
cmd: msrv-all
|
cmd: msrv-all
|
||||||
|
|
||||||
- name: Check Client
|
|
||||||
cmd: msrv-client
|
|
||||||
|
|
||||||
- name: Check Ruma
|
- name: Check Ruma
|
||||||
cmd: msrv-ruma
|
cmd: msrv-ruma
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@ pub enum CiCmd {
|
|||||||
Msrv,
|
Msrv,
|
||||||
/// Check all crates with all features (msrv)
|
/// Check all crates with all features (msrv)
|
||||||
MsrvAll,
|
MsrvAll,
|
||||||
/// Check ruma-client with default features (msrv)
|
|
||||||
MsrvClient,
|
|
||||||
/// Check ruma crate with default features (msrv)
|
/// Check ruma crate with default features (msrv)
|
||||||
MsrvRuma,
|
MsrvRuma,
|
||||||
/// Check ruma-identifiers with `ruma_identifiers_storage="Box"`
|
/// Check ruma-identifiers with `ruma_identifiers_storage="Box"`
|
||||||
@ -101,7 +99,6 @@ impl CiTask {
|
|||||||
match self.cmd {
|
match self.cmd {
|
||||||
Some(CiCmd::Msrv) => self.msrv()?,
|
Some(CiCmd::Msrv) => self.msrv()?,
|
||||||
Some(CiCmd::MsrvAll) => self.msrv_all()?,
|
Some(CiCmd::MsrvAll) => self.msrv_all()?,
|
||||||
Some(CiCmd::MsrvClient) => self.msrv_client()?,
|
|
||||||
Some(CiCmd::MsrvRuma) => self.msrv_ruma()?,
|
Some(CiCmd::MsrvRuma) => self.msrv_ruma()?,
|
||||||
Some(CiCmd::MsrvOwnedIdBox) => self.msrv_owned_id_box()?,
|
Some(CiCmd::MsrvOwnedIdBox) => self.msrv_owned_id_box()?,
|
||||||
Some(CiCmd::MsrvOwnedIdArc) => self.msrv_owned_id_arc()?,
|
Some(CiCmd::MsrvOwnedIdArc) => self.msrv_owned_id_arc()?,
|
||||||
@ -139,21 +136,20 @@ impl CiTask {
|
|||||||
/// Check that the crates compile with the MSRV.
|
/// Check that the crates compile with the MSRV.
|
||||||
fn msrv(&self) -> Result<()> {
|
fn msrv(&self) -> Result<()> {
|
||||||
self.msrv_all()?;
|
self.msrv_all()?;
|
||||||
self.msrv_client()?;
|
|
||||||
self.msrv_ruma()
|
self.msrv_ruma()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check all crates with all features with the MSRV, except:
|
/// Check all crates with all features with the MSRV, except:
|
||||||
/// * ruma (would pull in ruma-signatures)
|
/// * ruma (would pull in ruma-signatures)
|
||||||
/// * ruma-client (tested only with client-api feature due to most / all optional HTTP client
|
/// * ruma-macros (it's still pulled as a dependency but don't want to enable its nightly-only
|
||||||
/// deps having less strict MSRV)
|
/// internal feature here)
|
||||||
/// * ruma-signatures (MSRV exception)
|
/// * ruma-signatures (MSRV exception)
|
||||||
/// * xtask (no real reason to enforce an MSRV for it)
|
/// * xtask (no real reason to enforce an MSRV for it)
|
||||||
fn msrv_all(&self) -> Result<()> {
|
fn msrv_all(&self) -> Result<()> {
|
||||||
cmd!(
|
cmd!(
|
||||||
"rustup run {MSRV} cargo check --workspace --all-features
|
"rustup run {MSRV} cargo check --workspace --all-features
|
||||||
--exclude ruma
|
--exclude ruma
|
||||||
--exclude ruma-client
|
--exclude ruma-macros
|
||||||
--exclude ruma-signatures
|
--exclude ruma-signatures
|
||||||
--exclude xtask"
|
--exclude xtask"
|
||||||
)
|
)
|
||||||
@ -161,13 +157,6 @@ impl CiTask {
|
|||||||
.map_err(Into::into)
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check ruma-client with default features with the MSRV.
|
|
||||||
fn msrv_client(&self) -> Result<()> {
|
|
||||||
cmd!("rustup run {MSRV} cargo check -p ruma-client --features client-api")
|
|
||||||
.run()
|
|
||||||
.map_err(Into::into)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Check ruma crate with default features with the MSRV.
|
/// Check ruma crate with default features with the MSRV.
|
||||||
fn msrv_ruma(&self) -> Result<()> {
|
fn msrv_ruma(&self) -> Result<()> {
|
||||||
cmd!("rustup run {MSRV} cargo check -p ruma").run().map_err(Into::into)
|
cmd!("rustup run {MSRV} cargo check -p ruma").run().map_err(Into::into)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user