Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 1835a5a

Browse files
committed
WIP
1 parent 1a71ca6 commit 1835a5a

2 files changed

Lines changed: 57 additions & 8 deletions

File tree

.github/workflows/BuildKernel.yml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,66 @@
1-
name: Build Kernel Package
1+
---
2+
name: 'Build Kernel Package'
3+
4+
# yamllint disable-line rule:truthy
25
on: [push]
6+
37
jobs:
48
Lint:
5-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
610
steps:
7-
- name: Checkout repo
11+
- name: 'Checkout repo'
812
uses: actions/checkout@v2
9-
- name: Set up Python 3.9
13+
- name: 'Set up Python 3.9'
1014
uses: actions/setup-python@v2
11-
- name: Install dependencies
15+
- name: 'Install dependencies'
1216
run: |
1317
python -m pip install --upgrade pip
1418
pip install yamllint
1519
sudo apt-get install shellcheck bash
16-
- name: Analysing the code
20+
- name: 'Analysing the code'
1721
run: |
1822
yamllint .
1923
shellcheck ./*.sh
2024
21-
build:
25+
Build:
26+
needs: ['Lint']
2227
runs-on: ubuntu-20.04
2328
steps:
2429
- name: Checkout repo
2530
uses: actions/checkout@v2
2631
- name: Build in Docker
27-
run: sudo ./build.sh
32+
run: sudo ./build.sh
33+
34+
UploadPackage:
35+
runs-on: ubuntu-20.04
36+
steps:
37+
- name: Upload Kernel
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: kernel-packages
41+
path: ${{ github.workspace }}/artifacts/*.deb
42+
- name: Create draft release
43+
id: create_release
44+
uses: actions/create-release@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
tag_name: v${{ steps.create_tag.outputs.tag }}
49+
release_name: ${{ steps.create_tag.outputs.tag }}
50+
draft: true
51+
prerelease: false
52+
- name: Add Debian package to release
53+
uses: actions/upload-release-asset@v1.0.1
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
upload_url: ${{ steps.create_release.outputs.upload_url }}
58+
asset_path: ${{ github.workspace }}/mbp-16.1-linux-wifi-debian-${{ steps.create_tag.outputs.tag }}.zip
59+
asset_name: mbp-16.1-linux-wifi-debian-${{ steps.create_tag.outputs.tag }}.zip
60+
asset_content_type: application/zip
61+
# - name: Publish release
62+
# uses: eregon/publish-release@v1
63+
# env:
64+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
# with:
66+
# release_id: ${{ steps.create_release.outputs.id }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: 'Build Kernel Package'
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
workflow_run:
7+
workflows: ["Build Kernel Package"]
8+
types:
9+
- completed
10+
jobs:

0 commit comments

Comments
 (0)