arnaucube
arnaucube/poulpyPublic Self-hosted repository
poulpy/.github/workflows/ci.yml
.github/workflows/ci.ymlRaw
 1name: CI
 2
 3on:
 4  push:
 5    branches: [ main ]
 6  pull_request:
 7    branches: [ main ]
 8
 9jobs:
10  build-and-test:
11    runs-on: ubuntu-latest
12
13    steps:
14    - name: Checkout code
15      uses: actions/checkout@v4
16      with:
17        submodules: recursive
18
19    - name: Install Rust nightly
20      uses: dtolnay/rust-toolchain@nightly
21
22    - name: Cache cargo dependencies
23      uses: actions/cache@v4
24      with:
25        path: |
26          ~/.cargo/registry
27          ~/.cargo/git
28          target          
29        key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30        restore-keys: |
31          ${{ runner.os }}-cargo-          
32
33    - name: Build
34      run: cargo build --all-targets
35
36    - name: Run tests
37      run: cargo test --all