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

Add basic CI #13

Merged
merged 7 commits into from
Jun 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: razer-ctl-ci

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

env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y libudev-dev libxdo-dev librust-atk-dev libgtk-3-dev gcc-mingw-w64

- name: Install target for Windows
run: rustup target add x86_64-pc-windows-gnu
- name: Run clippy
run: cargo clippy --all-targets --all-features
- name: Build for Windows
run: cargo build --verbose --release --target x86_64-pc-windows-gnu
- name: Build for Linux
run: cargo build --verbose --release
Loading