Skip to content

Commit

Permalink
rust connectors mega commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraettinger committed Sep 1, 2023
1 parent 2dd6dce commit 3e5287e
Show file tree
Hide file tree
Showing 118 changed files with 8,006 additions and 4,397 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/derive-typescript.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: derive-typescript

on:
push:
branches: [master]
paths: [crates/derive-typescript/**]
pull_request:
branches: [master]
paths: [crates/derive-typescript/**]

jobs:
build-and-test:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: false

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
default: true
target: x86_64-unknown-linux-musl

- run: sudo apt install -y musl-tools

- name: Login to GitHub container registry
# TODO(johnny): Uncomment once merged.
# if: ${{ github.ref == 'refs/heads/master' }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login --username ${{ github.actor }} --password-stdin ghcr.io
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
crates/derive-typescript
- name: build `derive-typescript`
run: cd crates/derive-typescript && cargo build --target x86_64-unknown-linux-musl --release

- name: test `derive-typescript`
run: cd crates/derive-typescript && cargo test --target x86_64-unknown-linux-musl --release

- name: package docker image
run: docker build -t ghcr.io/estuary/derive-typescript:dev crates/derive-typescript/

- name: push docker image
# TODO(johnny): Uncomment once merged.
# if: ${{ github.ref == 'refs/heads/master' }}
run: docker push ghcr.io/estuary/derive-typescript:dev
125 changes: 68 additions & 57 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = ["crates/*"]
exclude = ["crates/derive-typescript"]

[workspace.package]
version = "0.0.0"
Expand Down Expand Up @@ -39,6 +40,7 @@ caseless = "0.2"
chardetng = "0.1"
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "3.2", features = ["derive", "env"] }
colored_json = "3"
comfy-table = "6.1"
# The `console_error_panic_hook` crate causes panics in a Rust WASM module to be logged
# with `console.error`.
Expand Down Expand Up @@ -159,16 +161,15 @@ tracing-subscriber = { version = "0.3", features = [
"fmt",
] }
shared_child = "1.0.0"
zeroize = "1.6"

unicode-bom = "1.1"
unicode-normalization = "0.1"
url = { version = "2.2", features = ["serde"] }
urlencoding = { version = "2.1.2" }
uuid = { version = "1.1", features = ["serde", "v4"] }
validator = { version = "0.15", features = ["derive"] }
quickcheck = "1.0"
quickcheck_macros = "1.0"
walkdir = "2"
wasm-bindgen = "0.2.62"
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. It is slower than the default
Expand Down
Loading

0 comments on commit 3e5287e

Please sign in to comment.