Skip to content

Commit

Permalink
Merge pull request #54 from ocni-dtu/chrk/53_monorepo
Browse files Browse the repository at this point in the history
Chrk/53 monorepo
  • Loading branch information
ocni-dtu authored May 8, 2024
2 parents 89ec239 + 4bfbf95 commit 0f78d3e
Show file tree
Hide file tree
Showing 107 changed files with 50,705 additions and 2,250 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.parquet filter=lfs diff=lfs merge=lfs -text
5 changes: 4 additions & 1 deletion .github/workflows/build_javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: jetli/wasm-pack-action@v0.4.0

- name: Build
working-directory: 'modules/lcax'
run: |
wasm-pack build --features jsbindings
mv pkg/lcax* packages/javascript/src
mv pkg/lcax* ../../packages/javascript/src
- uses: actions/setup-node@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: actions/download-artifact@v4
with:
Expand All @@ -32,7 +34,6 @@ jobs:
source venv/bin/activate
datamodel-codegen \
--input docs/schemas/lcax.schema.json \
--input-file-type jsonschema \
--output packages/python/src/lcax/pydantic.py
- name: Run Tests
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: Run Tests
run: cargo test --package lcax --target x86_64-unknown-linux-gnu
run: cargo test --target x86_64-unknown-linux-gnu

- name: Run Export Schemas
run: cargo run --target x86_64-unknown-linux-gnu --bin export-schema > lcax.schema.json
Expand All @@ -26,4 +28,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: rust-schema
path: 'src/project.rs'
path: 'modules/models/src/project.rs'
3 changes: 2 additions & 1 deletion .github/workflows/publish_javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- uses: jetli/wasm-pack-action@v0.4.0

- name: Build
working-directory: 'modules/lcax'
run: wasm-pack build --features jsbindings

- uses: actions/setup-node@v4
Expand All @@ -37,7 +38,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Publish
working-directory: pkg
working-directory: modules/lcax/pkg
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 0f78d3e

Please sign in to comment.