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

Release/multiple builds #21

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
github: ['marcosfad']
patreon:
open_collective:
ko_fi:
tidelift:
community_bridge:
liberapay:
issuehunt:
otechie:
custom: ['https://www.paypal.com/paypalme/marcosfad']
66 changes: 0 additions & 66 deletions .github/workflows/build.yml

This file was deleted.

163 changes: 163 additions & 0 deletions .github/workflows/buildAunalis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
---
name: Build Aunali1s Kernel Package

# yamllint disable-line rule:truthy
on:
[push, pull_request]

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: 'Checkout repo'
uses: actions/checkout@v2
- name: 'Set up Python 3.9'
uses: actions/setup-python@v2
- name: 'Install dependencies'
run: |
python -m pip install --upgrade pip
pip install yamllint
sudo apt-get install shellcheck bash
- name: 'Analysing the code'
run: |
yamllint .
shellcheck ./*.sh

build-a-mojave:
needs: [lint]
runs-on: ubuntu-20.04
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v2

- name: find latest release
id: variables
run: |
sudo apt install wget
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
VERSION=$(./ubuntu-mainline-kernel.sh -r v5.12 | grep v | rev | cut -d'v' -f 1 | rev | tail -1)
RELEASE_SUFFIX=t2-a-mojave
REL=$(./next_version.sh ${VERSION}-${RELEASE_SUFFIX})
echo "::set-output name=version::${VERSION}"
echo "::set-output name=releaseSuffix::${RELEASE_SUFFIX}"
echo "::set-output name=tag::${VERSION}-${RELEASE_SUFFIX}-${REL}"

- name: Build script
id: build
run: |
rm -rf /tmp/artifacts
mkdir /tmp/artifacts
echo Building ${{ steps.variables.outputs.tag }}
sudo ./build.sh \
--kernel=${{ steps.variables.outputs.version }} \
--kernelBranch="v${{ steps.variables.outputs.version }}" \
--kernelRepository="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git" \
--patchset1Repo="git://github.com/aunali1/linux-mbp-arch.git" \
--patchset1Branch=master \
--patchset1Commit=9511d5ed2ae0e851dd6a82843daefb2be7d5e212 \
--patchset1Filter="grep -vE 000[0-9]" \
--releaseSuffix=${{ steps.variables.outputs.releaseSuffix }} \
--releasePath=/tmp/artifacts
sudo chmod 777 -R /tmp/artifacts
cd /tmp/artifacts
ls -l
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
ls -l

- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: linux-${{ steps.variables.outputs.tag }}
path: /tmp/artifacts/*

- name: Release
if: |
github.ref == 'refs/heads/master' ||
startsWith(github.ref, 'refs/heads/release/')
uses: softprops/action-gh-release@v1
with:
body: |
Linux official kernel. Requires Mojave WiFi drivers.
Patchsets:
https://github.com/aunali1/linux-mbp-arch excluding 0001 to 0009
files: |
/tmp/artifacts/Packages.gz
/tmp/artifacts/sha256
/tmp/artifacts/*.deb
tag_name: v${{ steps.variables.outputs.tag }}
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-a-bigsur:
needs: [lint]
runs-on: ubuntu-20.04
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v2

- name: find latest release
id: variables
run: |
sudo apt install wget
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
VERSION=$(./ubuntu-mainline-kernel.sh -r v5.12 | grep v | rev | cut -d'v' -f 1 | rev | tail -1)
RELEASE_SUFFIX=t2-a-bigsur
REL=$(./next_version.sh ${VERSION}-${RELEASE_SUFFIX})
echo "::set-output name=version::${VERSION}"
echo "::set-output name=releaseSuffix::${RELEASE_SUFFIX}"
echo "::set-output name=tag::${VERSION}-${RELEASE_SUFFIX}-${REL}"

- name: Build script
id: build
run: |
rm -rf /tmp/artifacts
mkdir /tmp/artifacts
echo Building ${{ steps.variables.outputs.tag }}
sudo ./build.sh \
--kernel=${{ steps.variables.outputs.version }} \
--kernelBranch="v${{ steps.variables.outputs.version }}" \
--kernelRepository="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git" \
--patchset1Repo="git://github.com/aunali1/linux-mbp-arch.git" \
--patchset1Branch=master \
--patchset1Commit=9511d5ed2ae0e851dd6a82843daefb2be7d5e212 \
--patchset1Filter="grep -vE 000[0-9] | grep -vE brcmfmac" \
--patchset2Repo="git://github.com/jamlam/mbp-16.1-linux-wifi.git" \
--patchset2Branch=main \
--patchset2Commit=4c8b393ed7a874e3d9e44a2a467c1b7c74af1260 \
--patchset2Filter="grep -E wifi-bigsur" \
--releaseSuffix=${{ steps.variables.outputs.releaseSuffix }} \
--releasePath=/tmp/artifacts
sudo chmod 777 -R /tmp/artifacts
cd /tmp/artifacts
ls -l
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
ls -l

- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: linux-${{ steps.variables.outputs.tag }}
path: /tmp/artifacts/*

- name: Release
if: |
github.ref == 'refs/heads/master' ||
startsWith(github.ref, 'refs/heads/release/')
uses: softprops/action-gh-release@v1
with:
body: |
Linux official kernel. Requires Big Sur WiFi drivers.
Patchsets:
https://github.com/aunali1/linux-mbp-arch excluding 0001 to 0009
https://github.com/jamlam/mbp-16.1-linux-wifi only 8001
files: |
/tmp/artifacts/Packages.gz
/tmp/artifacts/sha256
/tmp/artifacts/*.deb
tag_name: v${{ steps.variables.outputs.tag }}
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading