Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 13, 2024
0 parents commit 6d416d5
Show file tree
Hide file tree
Showing 13 changed files with 3,108 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches: ["main"]
tags: "v*"
pull_request:
branches: ["main"]

permissions:
contents: write

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- build: linux
platform: ubuntu-latest
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (linux only)
if: matrix.build == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Rust cache
uses: swatinem/rust-cache@v2

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/target


# Added by cargo
#
# already existing elements were commented out

#/target
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"nixEnvSelector.suggestion": false,
"editor.detectIndentation": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": [
"source.addMissingImports",
"source.fixAll.eslint"
],
"[nix]": {
"editor.defaultFormatter": "jnoortheen.nix-ide"
},
"nix.enableLanguageServer": true,
"nix.serverPath": "nixd",
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"nixEnvSelector.nixFile": "${workspaceFolder}/shell.nix",
"nixEnvSelector.args": "--impure"
}

Loading

0 comments on commit 6d416d5

Please sign in to comment.