Skip to content

Commit

Permalink
Move to GHA to stable Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Jun 24, 2024
1 parent 123a0e4 commit e1d5071
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
AW_WEBUI_DIR: ${{ github.workspace }}/aw-webui/dist
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-11-01
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
sudo apt-get update
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check --all
Expand All @@ -24,9 +24,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y libdbus-1-dev
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-11-01
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --locked --all-targets --all-features --workspace -- -D warnings
Expand All @@ -37,9 +36,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y libdbus-1-dev
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --locked --all-targets --workspace -- -D warnings
Expand All @@ -50,9 +48,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y libdbus-1-dev
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2023-11-01
components: clippy
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features --workspace
5 changes: 3 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use watchers::config::FileConfig;

pub struct RunnerConfig {
pub watchers_config: Config,
#[cfg(feature = "bundle")]
pub config_file: PathBuf,
#[cfg(feature = "bundle")]
pub no_tray: bool,
}

Expand Down Expand Up @@ -100,11 +102,10 @@ pub fn from_cli() -> anyhow::Result<RunnerConfig> {
filters: config.client.filters,
no_server: *matches.get_one("no-server").unwrap(),
},
#[cfg(feature = "bundle")]
config_file: config.config_file,
#[cfg(feature = "bundle")]
no_tray: *matches.get_one("no-tray").unwrap(),
#[cfg(not(feature = "bundle"))]
no_tray: true,
})
}

Expand Down

0 comments on commit e1d5071

Please sign in to comment.