]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Rust CI job
authorSimon Cozens <simon@simon-cozens.org>
Wed, 22 Jan 2025 16:19:45 +0000 (16:19 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 22 Jan 2025 16:19:45 +0000 (16:19 +0000)
.github/workflows/rust.yml [new file with mode: 0644]

diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644 (file)
index 0000000..ab31e28
--- /dev/null
@@ -0,0 +1,28 @@
+name: Rust
+
+on:
+  push:
+    branches: ["main"]
+  pull_request:
+    branches: ["main"]
+
+env:
+  CARGO_TERM_COLOR: always
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          submodules: recursive
+      - name: Install protoc
+        run: sudo apt-get install protobuf-compiler
+      - name: Build
+        run: cargo build --verbose
+      - name: Check for lints
+        run: cargo clippy
+      - name: Run tests
+        run: |
+          cargo test --verbose