Skip to content

Commit

Permalink
ci: Add CI for testing lib_ccxr layer as well
Browse files Browse the repository at this point in the history
  • Loading branch information
IshanGrover2004 committed Jul 17, 2024
1 parent a874271 commit 17355f2
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Format sourcecode
on:
push:
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
- 'src/rust/**'
- ".github/workflows/format.yml"
- "src/**.c"
- "src/**.h"
- "src/rust/**"
tags-ignore: # ignore push via new tag
- '*.*'
- "*.*"
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
- 'src/rust/**'
- ".github/workflows/format.yml"
- "src/**.c"
- "src/**.h"
- "src/rust/**"
jobs:
format:
runs-on: ubuntu-latest
Expand All @@ -31,7 +31,7 @@ jobs:
working-directory: ./src/rust
steps:
- uses: actions/checkout@v4
- name: cache
- name: cache
uses: actions/cache@v4
with:
path: |
Expand All @@ -58,19 +58,23 @@ jobs:
- name: Install dependencies
run: sudo apt update && sudo apt-get install libgpac-dev
- uses: actions/checkout@v4
- name: cache
- name: cache
uses: actions/cache@v4
with:
path: |
src/rust/.cargo/registry
src/rust/.cargo/git
src/rust/target
src/rust/lib_ccxr/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: build
run: cargo test
- name: Build and test main module
run: cargo test
working-directory: ./src/rust
- name: Build and test lib_ccxr
run: cargo test
working-directory: ./src/rust/lib_ccxr

0 comments on commit 17355f2

Please sign in to comment.