Skip to content

Commit

Permalink
Set up CI for compiler (#8)
Browse files Browse the repository at this point in the history
- Fix typos in CI yaml
- Due to actions-rs/cargo#86 the cargo actions cannot be configured to run in the `compiler/` dir, so it's easier to just move the compiler into the root of the repo.
  • Loading branch information
adamchalmers authored Jul 18, 2023
1 parent 55609db commit d00b290
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 85 deletions.
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.

0 comments on commit d00b290

Please sign in to comment.