From a1233d771bc6a413493ad3d5f3f3033f10dd9dba Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:19:41 +0200 Subject: [PATCH 1/4] Initial commit: Hello world with basic woodpecker build pipeline --- .gitignore | 1 + .woodpecker/build.yaml | 9 +++++++++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ README.md | 3 +++ src/main.rs | 3 +++ 6 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 .woodpecker/build.yaml create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..a80360f --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,9 @@ +when: + - event: push + branch: master + +steps: + - name: build + image: rust + commands: + - cargo build diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..b20e273 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rlox-tree" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c045292 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rlox-tree" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b9d2dc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Introduction + +This is an implementation of the first interpreter of the book [Crafting interpreters](https://craftinginterpreters.com/). diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} From aab94b3f8edc07012a5db538b64fb813d1371009 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:29:55 +0200 Subject: [PATCH 2/4] ci: add linter (clippy) Any warning is treated as an error --- .woodpecker/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index a80360f..84e4c01 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -7,3 +7,8 @@ steps: image: rust commands: - cargo build + - name: Linter + image: rust + commands: + - rustup component add clippy + - cargo clippy -- -Dwarnings From 877fc196af1f53d5af29f4048f5f154c30212bd0 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:19:41 +0200 Subject: [PATCH 3/4] Initial commit: Hello world with basic woodpecker build pipeline --- .gitignore | 1 + .woodpecker/build.yaml | 9 +++++++++ Cargo.lock | 7 +++++++ Cargo.toml | 8 ++++++++ README.md | 5 +++++ src/main.rs | 3 +++ 6 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 .woodpecker/build.yaml create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..a80360f --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,9 @@ +when: + - event: push + branch: master + +steps: + - name: build + image: rust + commands: + - cargo build diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..b20e273 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rlox-tree" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c045292 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rlox-tree" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..9ace35f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +[![status-badge](https://ci.miers.xyz/api/badges/3/status.svg?branch=master)](https://ci.miers.xyz/repos/3) + +# Introduction + +This is an implementation of the first interpreter of the book [Crafting interpreters](https://craftinginterpreters.com/). diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} From 84a5cfa2e30688ef6a09a3a4aca36f760056fb57 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 23 May 2025 10:29:55 +0200 Subject: [PATCH 4/4] ci: add linter (clippy) Any warning is treated as an error --- .woodpecker/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index a80360f..84e4c01 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -7,3 +7,8 @@ steps: image: rust commands: - cargo build + - name: Linter + image: rust + commands: + - rustup component add clippy + - cargo clippy -- -Dwarnings