mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 16:57:53 -04:00
Compare commits
1 Commits
d6b2678138
...
bae29d7f20
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bae29d7f20 |
17
.github/workflows/check-and-build-and-test.yml
vendored
17
.github/workflows/check-and-build-and-test.yml
vendored
@@ -18,18 +18,16 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
formatting-and-deny-and-audit:
|
||||
name: Check formatting, cargo-deny, and cargo-audit
|
||||
formatting-and-deny:
|
||||
name: Check formatting and cargo-deny
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 4
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install stable Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install cargo-audit
|
||||
uses: taiki-e/install-action@cargo-audit
|
||||
|
||||
- name: Formatting
|
||||
run: cargo fmt --check --verbose
|
||||
@@ -37,9 +35,6 @@ jobs:
|
||||
- name: cargo-deny
|
||||
uses: EmbarkStudios/cargo-deny-action@v2
|
||||
|
||||
- name: cargo-audit
|
||||
run: cargo-audit audit --deny warnings
|
||||
|
||||
check-and-build:
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -93,7 +88,7 @@ jobs:
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Check and build ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }}) ${{ matrix.minimal_or_latest.job_name_suffix }}
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
timeout-minutes: 5
|
||||
env:
|
||||
# https://github.com/rust-lang/stacker/issues/80#issuecomment-1547991131
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||
@@ -170,7 +165,7 @@ jobs:
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Test ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -217,7 +212,7 @@ jobs:
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
timeout-minutes: 4
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
157
.github/workflows/daily.yml
vendored
157
.github/workflows/daily.yml
vendored
@@ -1,157 +0,0 @@
|
||||
name: Daily
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "27 17 * * *"
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
name: Use `cargo-audit` to create issues for vulnerabilities or other problems
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 4
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: rustsec/audit-check@v2.0.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
check-and-build-with-nightly:
|
||||
strategy:
|
||||
matrix:
|
||||
supporteds:
|
||||
- runner: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
|
||||
- runner: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
|
||||
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||
runner: ubuntu-latest
|
||||
target: aarch64-unknown-linux-gnu
|
||||
|
||||
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && sudo ln -s /bin/g++ /bin/musl-g++
|
||||
runner: ubuntu-latest
|
||||
target: aarch64-unknown-linux-musl
|
||||
|
||||
- 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
|
||||
|
||||
# I would like to support this but I don't know how to install the dependencies to be able to
|
||||
# - runner: windows-latest
|
||||
# target: aarch64-pc-windows-gnullvm
|
||||
|
||||
- runner: windows-latest
|
||||
target: aarch64-pc-windows-msvc
|
||||
|
||||
# I don't think supporting this is up to me
|
||||
# I forgot where I learned this, but
|
||||
# I don't think I can use a non-Rust dependency (i.e. llama.cpp) here
|
||||
# - runner: windows-latest
|
||||
# target: x86_64-pc-windows-gnu
|
||||
|
||||
- runner: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Check and build ${{ matrix.supporteds.target }} with nightly Rust (on ${{ matrix.supporteds.runner }}) ${{ matrix.minimal_or_latest.job_name_suffix }}
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
env:
|
||||
# https://github.com/rust-lang/stacker/issues/80#issuecomment-1547991131
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc # TODO: shouldn't this be something to do with musl, not gcc?
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install prerequisite build chain
|
||||
if: matrix.supporteds.install_prerequisite
|
||||
run: ${{ matrix.supporteds.install_prerequisite }}
|
||||
|
||||
- name: Install nightly Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: ${{ matrix.supporteds.target }}
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: ${{ matrix.supporteds.target }}-latest-nightly
|
||||
cache-on-failure: "true"
|
||||
|
||||
- name: Check
|
||||
run: cargo check --verbose
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
test-with-nightly:
|
||||
strategy:
|
||||
matrix:
|
||||
supporteds:
|
||||
- runner: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
|
||||
- runner: macos-latest
|
||||
target: x86_64-apple-darwin
|
||||
|
||||
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||
# - runner: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
|
||||
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||
# - runner: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-musl
|
||||
|
||||
- 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
|
||||
|
||||
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||
# - runner: windows-latest
|
||||
# target: aarch64-pc-windows-gnullvm
|
||||
|
||||
# Not able to be tested in GitHub Actions (without emulation, at least)
|
||||
# - runner: windows-latest
|
||||
# target: aarch64-pc-windows-msvc
|
||||
|
||||
# I don't think supporting this is up to me
|
||||
# I forgot where I learned this, but
|
||||
# I don't think I can use a non-Rust dependency (i.e. llama.cpp) here
|
||||
# - runner: windows-latest
|
||||
# target: x86_64-pc-windows-gnu
|
||||
|
||||
- runner: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
name: Test ${{ matrix.supporteds.target }} with nightly Rust (on ${{ matrix.supporteds.runner }})
|
||||
runs-on: ${{ matrix.supporteds.runner }}
|
||||
timeout-minutes: 8
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install prerequisite build chain
|
||||
if: matrix.supporteds.install_prerequisite
|
||||
run: ${{ matrix.supporteds.install_prerequisite }}
|
||||
|
||||
- name: Install nightly Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
targets: ${{ matrix.supporteds.target }}
|
||||
|
||||
- name: Install Nextest
|
||||
uses: taiki-e/install-action@cargo-nextest
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: ${{ matrix.supporteds.target }}-latest
|
||||
cache-on-failure: "true"
|
||||
|
||||
- name: Test
|
||||
run: cargo nextest run --target ${{ matrix.supporteds.target }}
|
10
Cargo.lock
generated
10
Cargo.lock
generated
@@ -134,9 +134,9 @@ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.1.29"
|
||||
version = "1.1.28"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "58e804ac3194a48bb129643eb1d62fcc20d18c6b8c181704489353d13120bcd1"
|
||||
checksum = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1"
|
||||
dependencies = [
|
||||
"jobserver",
|
||||
"libc",
|
||||
@@ -384,8 +384,7 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
||||
[[package]]
|
||||
name = "llama-cpp-2"
|
||||
version = "0.1.82"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e40528912f1212003f65912c0ad1d2d2d0302e53557e0ea3cd12b5706a9223ca"
|
||||
source = "git+https://github.com/babichjacob/llama-cpp-rs?branch=fix-use-c-char-instead-of-i8#92bef3a7d2dbd49af9e22cf44a30b33bb0af9202"
|
||||
dependencies = [
|
||||
"enumflags2",
|
||||
"llama-cpp-sys-2",
|
||||
@@ -396,8 +395,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "llama-cpp-sys-2"
|
||||
version = "0.1.82"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ccfde3214b7b8bcc25448198df1add0630695c7a2773a60400572bf5156b9335"
|
||||
source = "git+https://github.com/babichjacob/llama-cpp-rs?branch=fix-use-c-char-instead-of-i8#92bef3a7d2dbd49af9e22cf44a30b33bb0af9202"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"cc",
|
||||
|
@@ -11,3 +11,6 @@ repository = "https://github.com/babichjacob/ac-qu-ai-nt"
|
||||
clap = "4"
|
||||
snafu = "0.8"
|
||||
tracing = "0.1.23"
|
||||
|
||||
[patch.crates-io]
|
||||
llama-cpp-2 = { version = "0.1.81", git = "https://github.com/babichjacob/llama-cpp-rs", branch = "fix-use-c-char-instead-of-i8" }
|
||||
|
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.9](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.8...ac-qu-ai-nt-cli-clap-v0.0.9) - 2024-10-15
|
||||
## [0.0.9](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.8...ac-qu-ai-nt-cli-clap-v0.0.9) - 2024-10-11
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@@ -7,11 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-core-v0.0.3...ac-qu-ai-nt-core-v0.0.4) - 2024-10-15
|
||||
## [0.0.4](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-core-v0.0.3...ac-qu-ai-nt-core-v0.0.4) - 2024-10-11
|
||||
|
||||
### Other
|
||||
|
||||
- update `llama-cpp-2` and other packages
|
||||
- *(ac-qu-ai-nt-core)* update `llama-cpp-2`
|
||||
- *(core)* add `snafu` as a dependency
|
||||
|
||||
|
@@ -14,7 +14,7 @@ default = ["tracing"]
|
||||
tracing = ["dep:tracing"]
|
||||
|
||||
[dependencies]
|
||||
llama-cpp-2 = "0.1.82"
|
||||
llama-cpp-2 = "0.1.81"
|
||||
snafu = { workspace = true }
|
||||
|
||||
tracing = { workspace = true, optional = true }
|
||||
|
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.5...ac-qu-ai-nt-gui-eframe-v0.0.6) - 2024-10-15
|
||||
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-gui-eframe-v0.0.5...ac-qu-ai-nt-gui-eframe-v0.0.6) - 2024-10-11
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.13](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.12...ac-qu-ai-nt-v0.0.13) - 2024-10-15
|
||||
## [0.0.13](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.12...ac-qu-ai-nt-v0.0.13) - 2024-10-11
|
||||
|
||||
### Other
|
||||
|
||||
|
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.5...ac-qu-ai-nt-tui-ratatui-v0.0.6) - 2024-10-15
|
||||
## [0.0.6](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-tui-ratatui-v0.0.5...ac-qu-ai-nt-tui-ratatui-v0.0.6) - 2024-10-11
|
||||
|
||||
### Fixed
|
||||
|
||||
|
Reference in New Issue
Block a user