initial CI impl
Some checks failed
/ build-all-services (push) Failing after 0s

This commit is contained in:
husky 2025-03-12 15:21:58 -07:00
parent 906c2ed8df
commit 73463a8d21
5 changed files with 62 additions and 2 deletions

View file

@ -0,0 +1,17 @@
inputs:
service-name:
description: 'name of the service to build and upload'
required: true
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- run: |
mkdir -pv artifacts
cargo build --release --bin ${{ inputs.service-name }}
mv target/release/${{ inputs.service-name }} artifacts/
shell: bash
- uses: actions/upload-artifact@v3
with:
name: "${{ inputs.service-name }}"
path: artifacts/

View file

@ -0,0 +1,39 @@
on: [push]
jobs:
build-all-services:
runs-on: docker
container:
image: hub.docker.com/_/rust:1-bookworm
steps:
- id: asklyphe-auth-frontend
uses: ./.forgejo/build-service
with:
service-name: "asklyphe-auth-frontend"
- id: asklyphe-frontend
uses: ./.forgejo/build-service
with:
service-name: "asklyphe-frontend"
- id: authservice
uses: ./.forgejo/build-service
with:
service-name: "authservice"
- id: bingservice
uses: ./.forgejo/build-service
with:
service-name: "bingservice"
- id: googleservice
uses: ./.forgejo/build-service
with:
service-name: "googleservice"
- id: lyphedb
uses: ./.forgejo/build-service
with:
service-name: "lyphedb"
- id: searchservice
uses: ./.forgejo/build-service
with:
service-name: "searchservice"
- id: vorebot
uses: ./.forgejo/build-service
with:
service-name: "vorebot"

View file

@ -12,7 +12,7 @@ tokio = { version = "1.0", features = ["full"] }
chrono = "0.4.31" chrono = "0.4.31"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
lyphedb = { path = "../lyphedb" } lyphedb = { path = "../lyphedb" }
foundationdb = { version = "0.8.0", features = ["embedded-fdb-include"] } foundationdb = { version = "0.8.0", features = ["embedded-fdb-include"], optional = true }
log = "0.4.20" log = "0.4.20"
rmp-serde = "1.1.2" rmp-serde = "1.1.2"
futures = "0.3.30" futures = "0.3.30"
@ -20,3 +20,6 @@ async-nats = "0.38.0"
ulid = "1.1.0" ulid = "1.1.0"
rand = "0.8.5" rand = "0.8.5"
percent-encoding = "2.3.1" percent-encoding = "2.3.1"
[features]
default = []

View file

@ -16,6 +16,7 @@ pub mod db;
pub mod ldb; pub mod ldb;
pub use lyphedb; pub use lyphedb;
#[cfg(feature = "foundationdb")]
pub use foundationdb; pub use foundationdb;
pub fn add(left: usize, right: usize) -> usize { pub fn add(left: usize, right: usize) -> usize {

View file

@ -8,7 +8,7 @@ license-file = "LICENSE"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
asklyphe-common = { path = "../asklyphe-common" } asklyphe-common = { path = "../asklyphe-common", features = ["foundationdb"] }
tokio = { version = "1.0", features = ["full"] } tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
rmp-serde = "1.1.2" rmp-serde = "1.1.2"