chore: Add cargo workspace.

This commit is contained in:
James Harton 2024-05-28 19:57:07 +12:00
parent 77d0b8579a
commit b57e9b200b
Signed by: james
GPG key ID: 90E82DAA13F624F4
4 changed files with 3184 additions and 28 deletions

View file

@ -220,7 +220,7 @@ steps:
commands:
- asdf mix doctor --full
- name: cargo test scenic_renderer
- name: cargo test
image: harton.dev/james/asdf_container:latest
environment:
ASDF_DATA_DIR: /drone/src/.asdf
@ -228,9 +228,9 @@ steps:
depends_on:
- install dependencies
commands:
- (cd native/scenic_renderer && asdf cargo test)
- asdf cargo test
- name: cargo clippy scenic_renderer
- name: cargo clippy
image: harton.dev/james/asdf_container:latest
environment:
ASDF_DATA_DIR: /drone/src/.asdf
@ -238,27 +238,7 @@ steps:
depends_on:
- install dependencies
commands:
- (cd native/scenic_renderer && asdf cargo clippy)
- name: cargo test scenic_window
image: harton.dev/james/asdf_container:latest
environment:
ASDF_DATA_DIR: /drone/src/.asdf
RUSTFLAGS: -Clink-arg=-Wl,--undefined-version
depends_on:
- install dependencies
commands:
- (cd native/scenic_window && asdf cargo test)
- name: cargo clippy scenic_window
image: harton.dev/james/asdf_container:latest
environment:
ASDF_DATA_DIR: /drone/src/.asdf
RUSTFLAGS: -Clink-arg=-Wl,--undefined-version
depends_on:
- install dependencies
commands:
- (cd native/scenic_window && asdf cargo clippy)
- asdf cargo clippy
- name: mix git_ops.check_message
image: harton.dev/james/asdf_container:latest
@ -290,10 +270,8 @@ steps:
- mix deps.unlock
- mix doctor
- mix git_ops.check_message
- cargo test scenic_window
- cargo clippy scenic_window
- cargo test scenic_renderer
- cargo clippy scenic_renderer
- cargo test
- cargo clippy
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex

2
.gitignore vendored
View file

@ -27,3 +27,5 @@ scenic_driver_renderling-*.tar
priv/__scenic
priv/native
target/

3170
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[workspace]
members = [
"native/scenic_renderer",
"native/scenic_window",
]
resolver = "2"