Skip to content

Commit

Permalink
fix(ci): use cargo-hack in canary builds (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr authored Aug 18, 2022
1 parent 74f53d0 commit 706f018
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-all-features
args: --force cargo-hack

- uses: actions-rs/cargo@v1
with:
command: check-all-features

command: hack check --each-feature --no-dev-deps
19 changes: 10 additions & 9 deletions bin/inx-chronicle/src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

use async_trait::async_trait;
use bytesize::ByteSize;
#[cfg(any(feature = "api", feature = "inx"))]
use chronicle::runtime::{ActorError, HandleEvent, Report};
use chronicle::{
db::MongoDb,
runtime::{Actor, ActorContext, ErrorLevel, RuntimeError},
Expand Down Expand Up @@ -113,13 +111,15 @@ impl Actor for Launcher {

#[cfg(all(feature = "inx", feature = "stardust"))]
#[async_trait]
impl HandleEvent<Report<super::stardust_inx::InxWorker>> for Launcher {
impl chronicle::runtime::HandleEvent<chronicle::runtime::Report<super::stardust_inx::InxWorker>> for Launcher {
async fn handle_event(
&mut self,
cx: &mut ActorContext<Self>,
event: Report<super::stardust_inx::InxWorker>,
event: chronicle::runtime::Report<super::stardust_inx::InxWorker>,
config: &mut Self::State,
) -> Result<(), Self::Error> {
use chronicle::runtime::{ActorError, Report};

use super::stardust_inx::InxError;
match event {
Report::Success(_) => {
Expand Down Expand Up @@ -165,13 +165,14 @@ impl HandleEvent<Report<super::stardust_inx::InxWorker>> for Launcher {

#[cfg(feature = "api")]
#[async_trait]
impl HandleEvent<Report<super::api::ApiWorker>> for Launcher {
impl chronicle::runtime::HandleEvent<chronicle::runtime::Report<super::api::ApiWorker>> for Launcher {
async fn handle_event(
&mut self,
cx: &mut ActorContext<Self>,
event: Report<super::api::ApiWorker>,
event: chronicle::runtime::Report<super::api::ApiWorker>,
config: &mut Self::State,
) -> Result<(), Self::Error> {
use chronicle::runtime::{ActorError, Report};
match event {
Report::Success(_) => {
cx.abort().await;
Expand All @@ -193,14 +194,14 @@ impl HandleEvent<Report<super::api::ApiWorker>> for Launcher {

#[cfg(feature = "metrics")]
#[async_trait]
impl HandleEvent<chronicle::runtime::Report<super::metrics::MetricsWorker>> for Launcher {
impl chronicle::runtime::HandleEvent<chronicle::runtime::Report<super::metrics::MetricsWorker>> for Launcher {
async fn handle_event(
&mut self,
cx: &mut ActorContext<Self>,
event: Report<super::metrics::MetricsWorker>,
event: chronicle::runtime::Report<super::metrics::MetricsWorker>,
config: &mut Self::State,
) -> Result<(), Self::Error> {
use chronicle::runtime::Report;
use chronicle::runtime::{ActorError, Report};
match event {
Report::Success(_) => {
cx.abort().await;
Expand Down

0 comments on commit 706f018

Please sign in to comment.