name: Daily Cross Compile Tests

on:
  schedule:
    - cron:  '30 12 * * *'

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        target: [armv7-stable-cross, aarch64-stable-cross, ppc64-stable-cross, mips64el-stable-cross, riscv64-stable-cross]
        branches: [criu-dev, master]

    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ matrix.branches }}
    - name: Run Cross Compilation Targets
      run: >
        sudo make -C scripts/ci ${{ matrix.target }}
