summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 32beb52911dc11c1b3ba9c4383895a3e23a5b347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: "Test"
on:
  pull_request:
  push:
jobs:
  linux_build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: cachix/install-nix-action@v25
    - uses: cachix/cachix-action@v14
      with:
        name: blitz
    - name: Checkout Linux
      run: |
        git clone --depth 1 --branch ${{ matrix.version.tag }} https://github.com/gregkh/linux.git
    - name: Check Devshell
      run: |
        nix develop .#${{ matrix.version.attribute }} --command bash -c "cd linux && make rustavailable && make defconfig && make -j$(nproc) bzImage"
        git -C linux clean -fdx
        nix develop .#${{ matrix.version.attribute }}_gcc --command bash -c "cd linux && make defconfig && make -j$(nproc) bzImage"
    strategy:
      matrix:
        version: [
        { tag: v6.8, attribute: linux_6_8 },
        { tag: v6.9-rc6, attribute: linux_6_9 }
        ]