From 5bca0769874b4d9ee2d8238cf0c41ef86c3bd721 Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Sat, 22 Feb 2025 16:19:22 -0500
Subject: [PATCH] add CI

---
 .gitlab-ci.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f7df9dd
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+image: "rust:latest"
+
+stages:
+  - lint
+  - build
+
+before_script:
+  - rustup target add wasm32-unknown-unknown
+  - rustup component add rustfmt
+  - rustup component add clippy
+
+lint:
+  stage: lint
+  script:
+    - cargo fmt -- --check
+    - cargo clippy --all-features -- -D warnings
+
+build:
+  stage: build
+  script:
+    - cargo build --release
+    - make
+    - cargo run --release -- --out out.gif
+  artifacts:
+    paths:
+      - out.gif
+      - target/rapidriter-cat.wat
-- 
GitLab