Add base commit
This commit is contained in:
commit
e73f9790c7
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.cuddle/
|
8
Cargo.toml
Normal file
8
Cargo.toml
Normal 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
13
cuddle.yaml
Normal 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
3
scripts/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Ran build"
|
11
scripts/install_cuddle.sh
Executable file
11
scripts/install_cuddle.sh
Executable 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
9
scripts/test_cuddle.sh
Executable 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
3
src/main.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user