Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI for compiler #8

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ on:
branches:
- main
paths:
- '**.rs'
- .github/workflows/cargo-clippy.yml
- Cargo.lock
- Cargo.toml
- rust-toolchain
- rust-toolchain.toml
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-clippy.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
pull_request:
paths:
- '**.rs'
- .github/workflows/cargo-clippy.yml
- Cargo.lock
- Cargo.toml
- rust-toolchain
- rust-toolchain.toml
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-clippy.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
name: cargo clippy
jobs:
cargoclippy:
compiler-cargoclippy:
name: cargo clippy --tests --benches --examples
runs-on: ubuntu-latest
steps:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- main
paths:
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-deny.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
pull_request:
paths:
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-deny.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
workflow_dispatch:
permissions: read-all
name: cargo deny
jobs:
compiler-cargodeny:
name: cargo deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: EmbarkStudios/cargo-deny-action@v1
with:
log-level: warn
command: check bans licenses sources
arguments: --all-features
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ on:
branches:
- main
paths:
- '**.rs'
- .github/workflows/cargo-test.yml
- Cargo.lock
- Cargo.toml
- rust-toolchain.toml
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-test.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
pull_request:
paths:
- '**.rs'
- .github/workflows/cargo-test.yml
- Cargo.lock
- Cargo.toml
- rust-toolchain.toml
- 'compiler/**.rs'
- compiler/.github/workflows/cargo-test.yml
- compiler/Cargo.lock
- compiler/Cargo.toml
- compiler/rust-toolchain.toml
workflow_dispatch:
permissions: read-all
name: cargo test
jobs:
cargotest:
compiler-cargotest:
name: cargo test
runs-on: ubuntu-latest
steps:
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[workspace]

members = [
"cli",
"compiler",
]

[workspace.package]
authors = ["Adam Chalmers <adam.chalmers@kittycad.io>"]
description = "Tooling for KCL (KittyCAD Language)"
documentation = "docs.rs/kittycad-lang"
readme = "README.md"
publish = false
repository = "/~https://github.com/KittyCAD/kcl"
license = "MIT"
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 0 additions & 32 deletions compiler/.github/workflows/cargo-deny.yml

This file was deleted.

26 changes: 13 additions & 13 deletions compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[workspace]
[package]
name = "compiler"
version = "0.1.0"
edition = "2021"
authors.workspace = true
description.workspace = true
documentation.workspace = true
publish.workspace = true
repository.workspace = true
license.workspace = true

members = [
"cli",
"compiler",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.package]
authors = ["Adam Chalmers <adam.chalmers@kittycad.io>"]
description = "Tooling for KCL (KittyCAD Language)"
documentation = "docs.rs/kittycad-lang"
readme = "README.md"
publish = false
repository = "/~https://github.com/KittyCAD/kcl"
license = "MIT"
[dependencies]
nom = "7.1.3"
15 changes: 0 additions & 15 deletions compiler/compiler/Cargo.toml

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion compiler/deny.toml → deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = ["KittyCAD", "oxidecomputer"]
# github = ["KittyCAD", "oxidecomputer"]
# 1 or more gitlab.com organizations to allow git sources for
# gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
Expand Down
File renamed without changes.