Skip to content

Commit d00b290

Browse files
authored
Set up CI for compiler (#8)
- 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.
1 parent 55609db commit d00b290

File tree

15 files changed

+83
-85
lines changed

15 files changed

+83
-85
lines changed
File renamed without changes.

compiler/.github/workflows/cargo-clippy.yml renamed to .github/workflows/cargo-clippy.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@ on:
33
branches:
44
- main
55
paths:
6-
- '**.rs'
7-
- .github/workflows/cargo-clippy.yml
8-
- Cargo.lock
9-
- Cargo.toml
10-
- rust-toolchain
11-
- rust-toolchain.toml
6+
- 'compiler/**.rs'
7+
- compiler/.github/workflows/cargo-clippy.yml
8+
- compiler/Cargo.lock
9+
- compiler/Cargo.toml
10+
- compiler/rust-toolchain.toml
1211
pull_request:
1312
paths:
14-
- '**.rs'
15-
- .github/workflows/cargo-clippy.yml
16-
- Cargo.lock
17-
- Cargo.toml
18-
- rust-toolchain
19-
- rust-toolchain.toml
13+
- 'compiler/**.rs'
14+
- compiler/.github/workflows/cargo-clippy.yml
15+
- compiler/Cargo.lock
16+
- compiler/Cargo.toml
17+
- compiler/rust-toolchain.toml
2018
name: cargo clippy
2119
jobs:
22-
cargoclippy:
20+
compiler-cargoclippy:
2321
name: cargo clippy --tests --benches --examples
2422
runs-on: ubuntu-latest
2523
steps:

.github/workflows/cargo-deny.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
paths:
6+
- 'compiler/**.rs'
7+
- compiler/.github/workflows/cargo-deny.yml
8+
- compiler/Cargo.lock
9+
- compiler/Cargo.toml
10+
- compiler/rust-toolchain.toml
11+
pull_request:
12+
paths:
13+
- 'compiler/**.rs'
14+
- compiler/.github/workflows/cargo-deny.yml
15+
- compiler/Cargo.lock
16+
- compiler/Cargo.toml
17+
- compiler/rust-toolchain.toml
18+
workflow_dispatch:
19+
permissions: read-all
20+
name: cargo deny
21+
jobs:
22+
compiler-cargodeny:
23+
name: cargo deny
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- uses: EmbarkStudios/cargo-deny-action@v1
29+
with:
30+
log-level: warn
31+
command: check bans licenses sources
32+
arguments: --all-features

compiler/.github/workflows/cargo-test.yml renamed to .github/workflows/cargo-test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ on:
33
branches:
44
- main
55
paths:
6-
- '**.rs'
7-
- .github/workflows/cargo-test.yml
8-
- Cargo.lock
9-
- Cargo.toml
10-
- rust-toolchain.toml
6+
- 'compiler/**.rs'
7+
- compiler/.github/workflows/cargo-test.yml
8+
- compiler/Cargo.lock
9+
- compiler/Cargo.toml
10+
- compiler/rust-toolchain.toml
1111
pull_request:
1212
paths:
13-
- '**.rs'
14-
- .github/workflows/cargo-test.yml
15-
- Cargo.lock
16-
- Cargo.toml
17-
- rust-toolchain.toml
13+
- 'compiler/**.rs'
14+
- compiler/.github/workflows/cargo-test.yml
15+
- compiler/Cargo.lock
16+
- compiler/Cargo.toml
17+
- compiler/rust-toolchain.toml
1818
workflow_dispatch:
1919
permissions: read-all
2020
name: cargo test
2121
jobs:
22-
cargotest:
22+
compiler-cargotest:
2323
name: cargo test
2424
runs-on: ubuntu-latest
2525
steps:
File renamed without changes.

Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[workspace]
2+
3+
members = [
4+
"cli",
5+
"compiler",
6+
]
7+
8+
[workspace.package]
9+
authors = ["Adam Chalmers <[email protected]>"]
10+
description = "Tooling for KCL (KittyCAD Language)"
11+
documentation = "docs.rs/kittycad-lang"
12+
readme = "README.md"
13+
publish = false
14+
repository = "https://github.com/KittyCAD/kcl"
15+
license = "MIT"
File renamed without changes.
File renamed without changes.
File renamed without changes.

compiler/.github/workflows/cargo-deny.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)