mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 16:57:53 -04:00
Compare commits
9 Commits
9950aace9c
...
release-pl
Author | SHA1 | Date | |
---|---|---|---|
![]() |
786949f79c | ||
![]() |
45e5c037ce | ||
![]() |
09c42f0546 | ||
![]() |
1c436c8fb4 | ||
![]() |
6717af965d | ||
![]() |
4e6d56c044 | ||
![]() |
844494b2ca | ||
![]() |
c60856c7d1 | ||
![]() |
22733f51e0 |
51
.github/workflows/check-and-build-and-test.yml
vendored
51
.github/workflows/check-and-build-and-test.yml
vendored
@@ -18,8 +18,8 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
formatting-and-deny-and-audit:
|
||||
name: Check formatting, cargo-deny, and cargo-audit
|
||||
audit-and-deny-and-clippy-and-formatting:
|
||||
name: Check cargo-audit, cargo-deny, clippy, and formatting
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 4
|
||||
steps:
|
||||
@@ -31,14 +31,21 @@ jobs:
|
||||
- name: Install cargo-audit
|
||||
uses: taiki-e/install-action@cargo-audit
|
||||
|
||||
- name: Formatting
|
||||
run: cargo fmt --check --verbose
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: cargo-audit
|
||||
run: cargo-audit audit --deny warnings
|
||||
|
||||
- name: cargo-deny
|
||||
uses: EmbarkStudios/cargo-deny-action@v2
|
||||
|
||||
- name: cargo-audit
|
||||
run: cargo-audit audit --deny warnings
|
||||
- name: Clippy
|
||||
run: cargo clippy
|
||||
env:
|
||||
RUSTFLAGS: "--deny warnings"
|
||||
|
||||
- name: Formatting
|
||||
run: cargo fmt --check --verbose
|
||||
|
||||
check-and-build:
|
||||
strategy:
|
||||
@@ -198,24 +205,24 @@ jobs:
|
||||
msrv:
|
||||
strategy:
|
||||
matrix:
|
||||
crate_directory:
|
||||
- ./core
|
||||
- ./cli-clap
|
||||
- ./gui-eframe
|
||||
- ./tui-ratatui
|
||||
- ./multibinary
|
||||
|
||||
supporteds:
|
||||
- runner: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
|
||||
- runner: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
|
||||
- runner: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools && sudo ln -s /bin/g++ /bin/musl-g++
|
||||
runner: ubuntu-latest
|
||||
target: x86_64-unknown-linux-musl
|
||||
|
||||
- prerequisite_step: rm ~/.cargo/bin/cargo.exe; rm ~/.cargo/bin/rust-analyzer.exe; rm ~/.cargo/bin/rustfmt.exe; rustup update
|
||||
runner: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||
name: Verify MSRV for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
steps:
|
||||
@@ -236,6 +243,18 @@ jobs:
|
||||
with:
|
||||
tool: cargo-msrv
|
||||
|
||||
- name: Verify declared MSRV (minimum supported Rust version)
|
||||
- name: Verify core's declared MSRV (minimum supported Rust version)
|
||||
run: cargo-msrv verify --output-format json
|
||||
working-directory: ${{ matrix.crate_directory }}
|
||||
working-directory: ./core
|
||||
- name: Verify cli-clap's declared MSRV (minimum supported Rust version)
|
||||
run: cargo-msrv verify --output-format json
|
||||
working-directory: ./cli-clap
|
||||
- name: Verify gui-eframe's declared MSRV (minimum supported Rust version)
|
||||
run: cargo-msrv verify --output-format json
|
||||
working-directory: ./gui-eframe
|
||||
- name: Verify tui-ratatui's declared MSRV (minimum supported Rust version)
|
||||
run: cargo-msrv verify --output-format json
|
||||
working-directory: ./tui-ratatui
|
||||
- name: Verify multibinary's declared MSRV (minimum supported Rust version)
|
||||
run: cargo-msrv verify --output-format json
|
||||
working-directory: ./multibinary
|
||||
|
4
.github/workflows/daily.yml
vendored
4
.github/workflows/daily.yml
vendored
@@ -2,7 +2,7 @@ name: Daily
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "27 17 * * *"
|
||||
- cron: "41 23 * * *"
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
@@ -150,7 +150,7 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: ${{ matrix.supporteds.target }}-latest
|
||||
shared-key: ${{ matrix.supporteds.target }}-latest-nightly
|
||||
cache-on-failure: "true"
|
||||
|
||||
- name: Test
|
||||
|
@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- *(ac-qu-ai-nt-cli-clap)* write a `main` function instead of re-exporting so that the declared MSRV can be met
|
||||
|
||||
### Other
|
||||
|
||||
- *(cli-clap)* ignore the `Args` argument because it doesn't get used yet (to satisfy Clippy)
|
||||
- build out the infrastructure for commands to be passed to the clap CLI
|
||||
|
||||
## [0.0.8](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.7...ac-qu-ai-nt-cli-clap-v0.0.8) - 2024-10-07
|
||||
|
||||
### Other
|
||||
|
@@ -1,4 +1,15 @@
|
||||
pub fn main() {
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
#[derive(Debug, Subcommand)]
|
||||
enum Command {}
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct Args {
|
||||
#[command(subcommand)]
|
||||
command: Command,
|
||||
}
|
||||
|
||||
pub fn main(_args: Args) {
|
||||
#[cfg(feature = "tracing")]
|
||||
tracing::info!("What's up, world?");
|
||||
}
|
||||
|
@@ -1,3 +1,7 @@
|
||||
use clap::Parser;
|
||||
|
||||
fn main() {
|
||||
ac_qu_ai_nt_cli_clap::main();
|
||||
let args = ac_qu_ai_nt_cli_clap::Args::parse();
|
||||
|
||||
ac_qu_ai_nt_cli_clap::main(args);
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Other
|
||||
|
||||
- update Cargo.lock dependencies
|
||||
- build out the infrastructure for commands to be passed to the clap CLI
|
||||
|
||||
## [0.0.12](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.11...ac-qu-ai-nt-v0.0.12) - 2024-10-07
|
||||
|
||||
|
@@ -19,7 +19,7 @@ struct Args {
|
||||
enum Command {
|
||||
#[cfg(feature = "cli-clap")]
|
||||
#[command(alias = "cli")]
|
||||
CliClap,
|
||||
CliClap(ac_qu_ai_nt_cli_clap::Args),
|
||||
#[cfg(feature = "gui-eframe")]
|
||||
#[command(alias = "gui")]
|
||||
GuiEframe,
|
||||
@@ -57,7 +57,7 @@ fn main() {
|
||||
|
||||
match command {
|
||||
#[cfg(feature = "cli-clap")]
|
||||
Command::CliClap => ac_qu_ai_nt_cli_clap::main(),
|
||||
Command::CliClap(args) => ac_qu_ai_nt_cli_clap::main(args),
|
||||
#[cfg(feature = "gui-eframe")]
|
||||
Command::GuiEframe => ac_qu_ai_nt_gui_eframe::main(),
|
||||
#[cfg(feature = "tui-ratatui")]
|
||||
|
Reference in New Issue
Block a user