|
1 | 1 | name: Release
|
2 |
| -on: |
3 |
| - push: |
4 |
| - workflow_dispatch: |
| 2 | +on: [workflow_dispatch] |
5 | 3 |
|
6 | 4 | jobs:
|
7 |
| - build: |
8 |
| - uses: ./.github/workflows/build2.yml |
9 |
| - strategy: |
10 |
| - matrix: |
11 |
| - kernel: [{ack: 0, version: 5.10.y}, {ack: 0, version: 5.15.y}, {ack: 0, version: 6.1.y}, {ack: 0, version: 6.6.y}, {ack: 1, version: android13-5.10-lts}, {ack: 1, version: android14-5.15-lts}] |
12 |
| - arch: [arm64, x86_64] |
13 |
| - with: |
14 |
| - host-os: ubuntu-20.04 |
15 |
| - ack: ${{ matrix.kernel.ack }} |
16 |
| - arch: ${{ matrix.arch }} |
17 |
| - version: ${{ matrix.kernel.version }} |
18 |
| - |
19 |
| - rootfs: |
20 |
| - uses: ./.github/workflows/rootfs.yml |
21 |
| - strategy: |
22 |
| - matrix: |
23 |
| - arch: [arm64, x86_64] |
24 |
| - with: |
25 |
| - host-os: ubuntu-22.04 |
26 |
| - arch: ${{ matrix.arch }} |
27 |
| - |
28 |
| - build-and-test: |
29 |
| - uses: ./.github/workflows/build-and-test.yml |
30 |
| - needs: rootfs |
31 |
| - strategy: |
32 |
| - matrix: |
33 |
| - kernel: [{ack: 0, version: 5.10.y}, {ack: 0, version: 5.15.y}, {ack: 0, version: 6.1.y}, {ack: 0, version: 6.6.y}, {ack: 1, version: android13-5.10-lts}, {ack: 1, version: android14-5.15-lts}] |
34 |
| - arch: [arm64, x86_64] |
35 |
| - with: |
36 |
| - host-os: ubuntu-22.04 |
37 |
| - ack: ${{ matrix.kernel.ack }} |
38 |
| - arch: ${{ matrix.arch }} |
39 |
| - version: ${{ matrix.kernel.version }} |
| 5 | + build-and-test-all: |
| 6 | + uses: ./.github/workflows/build-and-test-all.yml |
| 7 | + release: |
| 8 | + runs-on: ubuntu-22.04 |
| 9 | + needs: [build-and-test-all] |
| 10 | + permissions: |
| 11 | + contents: write |
| 12 | + steps: |
| 13 | + |
| 14 | + - name: Download kernel artifacts |
| 15 | + uses: actions/download-artifact@v4 |
| 16 | + with: |
| 17 | + name: kernel-artifacts |
| 18 | + pattern: kernel-artifacts-* |
| 19 | + merge-multiple: true |
| 20 | + |
| 21 | + - name: Download rootfs artifacts |
| 22 | + uses: actions/download-artifact@v4 |
| 23 | + with: |
| 24 | + name: rootfs |
| 25 | + pattern: rootfs-* |
| 26 | + merge-multiple: true |
| 27 | + |
| 28 | + - run: ls -lR |
| 29 | + |
| 30 | + - name: Compute hashsums and create hashsums.txt |
| 31 | + shell: bash |
| 32 | + run: | |
| 33 | + shopt -s extglob |
| 34 | + (cd kernel-artifacts && sha256sum !(*.deb)) > hashsums.txt |
| 35 | + (cd rootfs && sha256sum *) >> hashsums.txt |
| 36 | +
|
| 37 | + - name: Set output variables |
| 38 | + id: vars |
| 39 | + run: | |
| 40 | + set -x |
| 41 | +
|
| 42 | + echo "DATE=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT |
| 43 | +
|
| 44 | + - name: Publish release |
| 45 | + uses: softprops/action-gh-release@v2 |
| 46 | + with: |
| 47 | + prerelease: true |
| 48 | + tag_name: ${{ steps.vars.outputs.DATE }}-${{ needs.build.outputs.SHORT_HASH }} |
| 49 | + files: | |
| 50 | + kernel-artifacts/vmlinux* |
| 51 | + kernel-artifacts/Image* |
| 52 | + kernel-artifacts/bzImage* |
| 53 | + rootfs/* |
| 54 | + hashsums.txt |
| 55 | +
|
| 56 | + - name: Publish header release |
| 57 | + uses: softprops/action-gh-release@v2 |
| 58 | + with: |
| 59 | + prerelease: true |
| 60 | + tag_name: linux-headers-${{ steps.vars.outputs.DATE }}-${{ needs.build.outputs.SHORT_HASH }} |
| 61 | + files: kernel-artifacts/linux-headers-*.deb |
0 commit comments