CI #1
5 changed files with 62 additions and 2 deletions
17
.forgejo/build-service/action.yml
Normal file
17
.forgejo/build-service/action.yml
Normal 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/
|
39
.forgejo/workflows/build-all.yml
Normal file
39
.forgejo/workflows/build-all.yml
Normal 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"
|
|
@ -12,7 +12,7 @@ tokio = { version = "1.0", features = ["full"] }
|
|||
chrono = "0.4.31"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
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"
|
||||
rmp-serde = "1.1.2"
|
||||
futures = "0.3.30"
|
||||
|
@ -20,3 +20,6 @@ async-nats = "0.38.0"
|
|||
ulid = "1.1.0"
|
||||
rand = "0.8.5"
|
||||
percent-encoding = "2.3.1"
|
||||
|
||||
[features]
|
||||
default = []
|
|
@ -16,6 +16,7 @@ pub mod db;
|
|||
pub mod ldb;
|
||||
|
||||
pub use lyphedb;
|
||||
#[cfg(feature = "foundationdb")]
|
||||
pub use foundationdb;
|
||||
|
||||
pub fn add(left: usize, right: usize) -> usize {
|
||||
|
|
|
@ -8,7 +8,7 @@ license-file = "LICENSE"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
asklyphe-common = { path = "../asklyphe-common" }
|
||||
asklyphe-common = { path = "../asklyphe-common", features = ["foundationdb"] }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
rmp-serde = "1.1.2"
|
||||
|
|
Loading…
Add table
Reference in a new issue