Skip to content

Commit

Permalink
Merge pull request #3 from cdaringe/feat/add-flow
Browse files Browse the repository at this point in the history
refactor: switch to rust
  • Loading branch information
cdaringe committed Mar 24, 2023
2 parents 6ce8dba + 2cb7f21 commit 60a9a29
Show file tree
Hide file tree
Showing 44 changed files with 1,894 additions and 465 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build.yml
Expand Up @@ -8,17 +8,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
ocaml-version:
- 4.12+0+domains
steps:
- name: Install native deps
run: sudo apt-get install -y libev-dev
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v2
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: bash opam.dev.deps.sh
- run: opam exec -- dune build
- run: opam exec -- dune runtest
toolchain: nightly
override: true
components: rustfmt, clippy

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,3 +12,4 @@ fresh.arm
.freshdb
public
.git
target
Empty file removed .ocamlformat
Empty file.
2 changes: 1 addition & 1 deletion .rad/db.ts
Expand Up @@ -2,7 +2,7 @@ import type { Tasks } from "./common.ts";
import addMinutes from "https://deno.land/x/date_fns@v2.15.0/addMinutes/index.js";

// db
const containerName = "freshawair_freshdb_1";
const containerName = "freshawair-freshdb-1";
const dbname = "fresh";
const dbuser = "fresh";
const composeDevArgs = "-f docker-compose.yml -f docker-compose.dev.yml";
Expand Down
27 changes: 0 additions & 27 deletions .rad/opam.ts

This file was deleted.

1 change: 1 addition & 0 deletions .rsyncignore
Expand Up @@ -21,3 +21,4 @@ node_modules/
opam.dev.deps.sh
rad.ts
ui
target
69 changes: 69 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,69 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "agent",
"cargo": {
"args": ["build", "--bin=agent", "--package=agent"],
"filter": {
"name": "agent",
"kind": "bin"
}
},
"args": [
"--awair-endpoint=foo.com",
"--awair-endpoint=grr.qux",
"--db-host=bar.com",
"--db-port=1234"
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'agent'",
"cargo": {
"args": ["test", "--no-run", "--bin=agent", "--package=agent"],
"filter": {
"name": "agent",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'libagent'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=libagent"],
"filter": {
"name": "libagent",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'libawair'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=libawair"],
"filter": {
"name": "libawair",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

0 comments on commit 60a9a29

Please sign in to comment.