Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from naomijub/rust-client
Browse files Browse the repository at this point in the history
Rust client
  • Loading branch information
naomijub authored May 12, 2023
2 parents 93ec63e + c48570b commit 715b6ef
Show file tree
Hide file tree
Showing 13 changed files with 1,402 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]

env:
cd gxtdb-rs && CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: Build
run: cd gxtdb-rs && cargo build --all-features --release --verbose

test:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: tests
run: cd gxtdb-rs && cargo test --all-features -- --nocapture

fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: FMT
run: cd gxtdb-rs && cargo fmt -- --check

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: install-clippy
run: rustup component add clippy
- name: clippy
run: cd gxtdb-rs && cargo clippy --all-features -- -W clippy::all --deny "warnings"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ pom.xml.asc
.lsp/
.clj-kondo/
.calva/
.eastwood
.eastwood
*/target
Loading

0 comments on commit 715b6ef

Please sign in to comment.