diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5ef868431..094839bf6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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 @@ -31,7 +31,7 @@ jobs: working-directory: ./src/rust steps: - uses: actions/checkout@v4 - - name: cache + - name: cache uses: actions/cache@v4 with: path: | @@ -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