|
16 | 16 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
17 | 17 | jobs:
|
18 | 18 | # This workflow contains a single job called "build"
|
19 |
| - build: |
20 |
| - # The type of runner that the job will run on |
| 19 | + kernel: |
21 | 20 | runs-on: ubuntu-latest
|
22 |
| - |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + version: [6.4, 6.6, 6.7] |
23 | 24 | # Steps represent a sequence of tasks that will be executed as part of the job
|
24 | 25 | steps:
|
25 | 26 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
26 |
| - - uses: actions/checkout@v3 |
27 |
| - |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + |
28 | 29 | - name: Install Dependencies
|
29 | 30 | run: sudo apt update && sudo apt install build-essential gcc-aarch64-linux-gnu bc flex bison 7zip kmod bash cpio binutils tar git wget dpkg libssl-dev
|
30 | 31 |
|
31 |
| - - name: Build kernel and rootfs.img |
32 |
| - run: sudo sh nabu-rootfsKernel_build.sh |
| 32 | + - name: Build kernel |
| 33 | + run: sudo sh nabu-Kernel_build.sh ${{ matrix.version }} |
33 | 34 |
|
34 |
| - - name: Upload rootfs.7z |
| 35 | + - name: Upload deb packages |
35 | 36 | uses: actions/upload-artifact@v4.0.0
|
36 | 37 | with:
|
37 | 38 | # Artifact name
|
38 |
| - name: rootfs |
39 |
| - path: rootfs.7z |
40 |
| - compression-level: 0 |
| 39 | + name: xiaomi-nabu-debs_${{ matrix.version }} |
| 40 | + path: ${{ github.workspace }}/*.deb |
| 41 | + |
| 42 | + rootfs: |
| 43 | + # The type of runner that the job will run on |
| 44 | + runs-on: ubuntu-latest |
| 45 | + needs: kernel |
| 46 | + strategy: |
| 47 | + matrix: |
| 48 | + desktop: [ubuntu-desktop, lomiri] |
| 49 | + kernel: [6.4, 6.6, 6.7] |
| 50 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 51 | + steps: |
| 52 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 53 | + - uses: actions/checkout@v4 |
| 54 | + - uses: actions/download-artifact@v4 |
| 55 | + with: |
| 56 | + pattern: xiaomi-nabu-debs* |
| 57 | + - name: Install Dependencies |
| 58 | + run: sudo apt update && sudo apt install unzip build-essential gcc-aarch64-linux-gnu bc flex bison 7zip kmod bash cpio binutils tar git wget dpkg libssl-dev |
41 | 59 |
|
42 |
| - - name: Upload deb packages |
| 60 | + - name: Build rootfs |
| 61 | + run: sudo sh nabu-rootfs_build.sh ${{ matrix.desktop }} ${{ matrix.kernel }} |
| 62 | + |
| 63 | + - name: Upload rootfs.7z |
43 | 64 | uses: actions/upload-artifact@v4.0.0
|
44 | 65 | with:
|
45 | 66 | # Artifact name
|
46 |
| - name: xiaomi-nabu-debs |
47 |
| - path: ${{ github.workspace }}/*.deb |
| 67 | + name: rootfs_${{ matrix.desktop }}_${{ matrix.kernel }} |
| 68 | + path: rootfs.7z |
| 69 | + compression-level: 0 |
0 commit comments