commit e73f9790c745fe831932dbd770f8cae3d45863f1 Author: kjuulh Date: Thu Aug 11 00:19:00 2022 +0200 Add base commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75d1871 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.cuddle/ diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..6916ddc --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "base" +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/cuddle.yaml b/cuddle.yaml new file mode 100644 index 0000000..c7e48c5 --- /dev/null +++ b/cuddle.yaml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=../cuddle/schemas/base.json + +base: "../cuddle-rust-plan" +vars: + name: "cuddle-test-bed" + +scripts: + install_cuddle: + type: shell + description: "install cuddle_cli" + + test_cuddle: + type: shell diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..bc00b69 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Ran build" diff --git a/scripts/install_cuddle.sh b/scripts/install_cuddle.sh new file mode 100755 index 0000000..fe91533 --- /dev/null +++ b/scripts/install_cuddle.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +echo "installing binary" + +cargo install --path ../cuddle/cuddle_cli/ #--target-dir .cuddle/tmp/build --root .cuddle/dist/ + +echo "finished installing binary" + +exit 0 diff --git a/scripts/test_cuddle.sh b/scripts/test_cuddle.sh new file mode 100755 index 0000000..90740f6 --- /dev/null +++ b/scripts/test_cuddle.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "Testing cuddle" + +cuddle_cli x install_cuddle + +CUDDLE_FETCH_POLICY=always cuddle_cli x build_release + +echo "finished testing cuddle" 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!"); +}