about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml9
-rw-r--r--tests/hello-world/Cargo.toml4
-rw-r--r--tests/hello-world/src/main.rs3
3 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 44730bab4ed..9b2c7ab5e30 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -80,7 +80,14 @@ jobs:
         ./y.sh prepare --only-libcore
         ./y.sh build
         cargo test
-        ./y.sh clean all
+
+    - name: Run y.sh cargo build
+      run: |
+        ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
+
+    - name: Clean
+      run: |
+        ./y.sh clean all      
 
     - name: Prepare dependencies
       run: |
diff --git a/tests/hello-world/Cargo.toml b/tests/hello-world/Cargo.toml
new file mode 100644
index 00000000000..a3b6813443f
--- /dev/null
+++ b/tests/hello-world/Cargo.toml
@@ -0,0 +1,4 @@
+[package]
+name = "hello_world"
+
+[dependencies]
\ No newline at end of file
diff --git a/tests/hello-world/src/main.rs b/tests/hello-world/src/main.rs
new file mode 100644
index 00000000000..fbedd920525
--- /dev/null
+++ b/tests/hello-world/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}
\ No newline at end of file