Skip to content

Commit

Permalink
Enable build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadi Hanna Al-Kass committed Jul 31, 2024
1 parent d4b220d commit c7346a4
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 22 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Rust CI

on:
push:
branches:
- master
- '**/*.rs'
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/index
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache Cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

- name: Run Clippy
run: cargo clippy -- -D warnings

- name: Run Rustfmt
run: cargo fmt -- --check
22 changes: 0 additions & 22 deletions .github/workflows/codesee-arch-diagram.yml

This file was deleted.

0 comments on commit c7346a4

Please sign in to comment.