Skip to content

Commit

Permalink
workflow: Get ready lol
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNoelChannel committed Nov 12, 2023
1 parent 254456f commit 887e811
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Kernel CI (SM-J320H)

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Checkout Kernel Source
uses: actions/checkout@v2

- name: Getting Toolchain
run: |
sudo apt-get install lib32z1
sudo git clone --depth 1 --branch android-7.1.2_r37 --single-branch https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8 /opt/toolchains/arm-eabi-4.8/
- name: Building Kernel
run: |
make -j2 j3x3g-dt_defconfig
make -j64
- name: Moving Output # CI only
run: |
mkdir -p /home/runner/work/output
cp arch/arm/boot/Image /home/runner/work/output/zImage
- name: Uploading Output
uses: actions/upload-artifact@v2
with:
name: zImage
path: /home/runner/work/output/zImage
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?=arm
CROSS_COMPILE ?=../PLATFORM/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
CROSS_COMPILE ?=/opt/toolchains/arm-eabi-4.8/bin/arm-eabi-

# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
Expand Down

0 comments on commit 887e811

Please sign in to comment.