diff options
author | iximeow <me@iximeow.net> | 2022-12-26 11:15:54 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-01-02 08:06:57 -0800 |
commit | 7fc324d5b3aeff76dfe0c460b96f9bb4a1ac09d4 (patch) | |
tree | d6b835a8bc736eed631e6794cca58acc6caa144a /goodfile | |
parent | add2d33de91528c1585e72c5dc091b5dcbf6ee6b (diff) |
add a goodfile, will this.. work?
Diffstat (limited to 'goodfile')
-rw-r--r-- | goodfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/goodfile b/goodfile new file mode 100644 index 0000000..2dc9e22 --- /dev/null +++ b/goodfile @@ -0,0 +1,24 @@ +if not Build.environment.has("rustup") +then + Build.error("i don't know i want to handle dependencies yet") +end +Build.artifact("src/lib.rs") +Build.metric( + "nightly version", + "rustc --version" +) + +Build.run({"cargo", "build"}, {step="build"}) -- `run` automatically records stdout and stderr to log files named after the command +Build.run({"cargo", "test"}, {step="test", name="test stdlib/fmt"}) -- artifacts are stored under `name` if that's present +Build.run({"cargo", "test", "--no-default-features"}, {step="test", name="test nostdlib/nofmt"}) +Build.run({"cargo", "test", "--no-default-features", "--features", "fmt"}, {step="test", name="test nostdlib/fmt"}) + +Build.run({"cargo", "+nightly", "build", "-Z", "build-std", "--release", "--no-default-features", "--target", "x86_64-unknown-linux-gnu"}, {step="ffi_build", cwd="ffi/"}) + +sopath = "ffi/target/x86_64-unknown-linux-gnu/release/libyaxpeax_x86_ffi_long_mode.so" +Build.run({"ls", sopath}, {step="ffi_validate"}) +Build.metric( + "libyaxpeax_x86_ffi_long_mode.so size (bytes)", + Build.environment.size(sopath) +) +Build.artifact(sopath) |