-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup CI for TrueNAS/Linux repository
Signed-off-by: Umer Saleem <[email protected]>
- Loading branch information
Umer Saleem
committed
Feb 3, 2022
1 parent
fc8bb0b
commit 154deea
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
build_kernel: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y build-essential gawk flex bison openssl dkms \ | ||
libelf-dev libudev-dev libpci-dev libiberty-dev autoconf dwarves \ | ||
libncurses-dev libssl-dev | ||
- name: Generate .config | ||
run: | | ||
rm -rf .git .gitattributes .gitignore | ||
make defconfig | ||
make syncconfig | ||
make archprepare | ||
./scripts/kconfig/merge_config.sh .config ./scripts/package/truenas/tn.config | ||
./scripts/kconfig/merge_config.sh .config ./scripts/package/truenas/debug.config | ||
./scripts/package/mkdebian | ||
- name: Build Kernel | ||
run: | | ||
cp .config /tmp/ | ||
make distclean | ||
mv /tmp/.config .config | ||
make -j$(nproc) bindeb-pkg | ||
- name: Prepare artifacts | ||
run: | | ||
mkdir -p artifacts | ||
mv ../*.deb ./artifacts/ | ||
mv ../*.changes ./artifacts/ | ||
mv ../*.buildinfo ./artifacts/ | ||
cp .config ./artifacts/ | ||
- name: Export artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{github.ref_name}}-${{github.sha}} | ||
path: ./artifacts | ||
|
||
- name: Status | ||
run: | | ||
echo "Status: ${{job.status}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,7 @@ modules.order | |
!.gitattributes | ||
!.gitignore | ||
!.mailmap | ||
!.github | ||
|
||
# | ||
# Generated include files | ||
|