Skip to content

Commit

Permalink
feat: init ovfs (#4652)
Browse files Browse the repository at this point in the history
* init ovfs

* typo

* add ci

* unifiy error

* add more comments

* fix ci first

* typo
  • Loading branch information
zjregee authored Jun 3, 2024
1 parent 22abac0 commit 2962ab4
Show file tree
Hide file tree
Showing 8 changed files with 897 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ updates:
schedule:
interval: "monthly"

- package-ecosystem: "cargo"
directory: "/bin/ovfs"
open-pull-requests-limit: 1
schedule:
interval: "monthly"

- package-ecosystem: "cargo"
directory: "/integrations/dav-server"
open-pull-requests-limit: 1
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/ci_bin_ovfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Ovfs CI

on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "bin/ovfs/**"
- "core/**"
- ".github/workflows/ci_bin_ovfs.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
check_clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-rocksdb: true
need-protoc: true
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cargo clippy
working-directory: bin/ovfs
run: cargo clippy --all-targets --all-features -- -D warnings
225 changes: 225 additions & 0 deletions bin/ovfs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions bin/ovfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[package]
name = "ovfs"
version = "0.1.0"
edition = "2021"

[dependencies]
snafu = "0.8.3"
libc = "0.2.139"
vhost = "0.11.0"
virtio-queue = "0.11.0"
vmm-sys-util = "0.12.1"
virtio-bindings = "0.2.1"
vhost-user-backend = "0.14.0"
anyhow = { version = "1.0.86", features = ["std"] }
vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic"] }
Loading

0 comments on commit 2962ab4

Please sign in to comment.