Init Waifu Kernel #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Kernel | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "surya" ] | |
pull_request: | |
branches: [ "surya" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup timezone | |
uses: szenius/set-timezone@master | |
with: | |
timezoneLinux: "Asia/Bangkok" | |
- name: Install Package | |
run: | | |
sudo apt-get install -y libdebuginfod-dev bc python2-dev python2 curl zip wget | |
- name: Run build script | |
run: | | |
export KBUILD_BUILD_USER=nobody | |
export KBUILD_BUILD_HOST=android-build | |
source build.sh | |
echo "ZIPNAME=${ZIPNAME}" >> $GITHUB_ENV | |
- name: Setup build date | |
run: echo "BUILD_DATE=$(date '+%H:%M %d/%m/%Y')" >> $GITHUB_ENV | |
- name: Upload build artifact | |
uses: actions/upload-artifact@main | |
with: | |
name: my-artifact | |
path: ${{ env.ZIPNAME }} |