Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial commit #1

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM rust:1.75
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -yq \
ca-certificates coreutils curl git make mercurial \
build-essential clang llvm libclang-dev lld \
gyp ninja-build pkg-config zlib1g-dev libssl-dev libtss2-dev
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Development Container",
"dockerFile": "Dockerfile",
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"vsls-contrib.codetour"
]
}
},
"features": {
"ghcr.io/devcontainers/features/docker-from-docker:1": {}
},
"runArgs": [
"--network=host"
]
}
76 changes: 76 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI
on:
push:
branches: ["main"]
paths-ignore: ["*.md", "LICENSE-*"]
pull_request:
branches: ["main"]
paths-ignore: ["*.md", "LICENSE-*"]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
check:
name: Continuous Integration
runs-on: ubuntu-latest
env:
NSS_DIR: ${{ github.workspace }}/nss
strategy:
fail-fast: false
matrix:
hpke:
- rust-hpke
rust:
- 1.75.0
- stable

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy, llvm-tools-preview

- name: Check formatting
if: ${{ success() || failure() }}
run: |
cargo +${{ matrix.rust }} fmt --all -- --check --config imports_granularity=Crate

- name: Clippy
if: ${{ success() || failure() }}
run: |
cargo clippy --tests

container-build-and-test:
name: Container build and test
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Build container images
run: |
make build

- name: Run server container image
run: |
DETACHED="-d" make run-server-whisper

- name: Run client image
run: |
./scripts/service_wait.sh 127.0.0.1:3000
./scripts/service_wait.sh 127.0.0.1:9443
make run-client-container

- name: Stop containers
run: |
docker stop $(docker ps -q)
Loading