Add base commit

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 00:19:00 +02:00
commit e73f9790c7
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
7 changed files with 48 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.cuddle/

8
Cargo.toml Normal file
View File

@ -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]

13
cuddle.yaml Normal file
View File

@ -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

3
scripts/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "Ran build"

11
scripts/install_cuddle.sh Executable file
View File

@ -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

9
scripts/test_cuddle.sh Executable file
View File

@ -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"

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}