Skip to content

Commit

Permalink
Merge pull request #2 from nosignals/main
Browse files Browse the repository at this point in the history
add workflow
  • Loading branch information
armarchindo authored Jan 12, 2024
2 parents 19bc018 + 847dbde commit f4e425c
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 6 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# Copyright (C) 2024 nosignals
#
name: ULO Autobuilder

on:
push:
branches:
- main

jobs:
build_ipk:
permissions:
contents: write
strategy:
matrix:
kernel: [4.9.337, 6.1.66, 6.6.6]
devices: [s905x, s905x2, s905x3, s905x4]
name: ULO Autobuilder
runs-on: ubuntu-latest
steps:

- name: Cleanup and Installing Prerequisites
env:
DEBIAN_FRONTEND: noninteractive
run: |
docker rmi `docker images -q`
sudo -E apt-get update
sudo -E apt-get -y install lolcat build-essential clang flex bison g++ gawk gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev python3-distutils rsync unzip zlib1g-dev file wget
sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: main

- name: Building OpenWrt
run: |
sudo ./ulo -k ${{ matrix.kernel }} -m ${{ matrix.devices }} -s 512
- name: Creating Package Artifact
run: |
mkdir -p ./artifact
cp -rf ./out/${{ matrix.devices }}/* ./artifact/
- name: Delivering Package
uses: actions/upload-artifact@v2
with:
name: openwrt_package
path: ./artifact/*

- name: Upload release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./artifact/*
tag: ${{ github.ref }}
file_glob: true
body: |
## OpenWRT Release
Kernel :
- 4.9.337
- 6.6.6
- 6.1.66
Binary file modified core/kernel/6.1.66/modules-6.1.66.tar.gz
Binary file not shown.
9 changes: 3 additions & 6 deletions ulo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
lolcat=/usr/games/lolcat
echo -e "Preparing install ulo dependies"
apt install lolcat &> /dev/null
clear

tmp="./tmp"
out="./out"
Expand Down Expand Up @@ -442,15 +441,14 @@ blue="\033[94m"
purple="\033[95m"
cyan="\033[96m"
pink="\033[97m"
default="\033[0m"# Reset
default="\033[0m"

amlogic="s905x s905x2 s905x3 s905x4"

device_path="./device"
kernel_path="./core/kernel"
rootfs_path="./openwrt"

clear
echo -e "
======================================================================
----------------------------------------------------------------------
Expand Down Expand Up @@ -550,7 +548,6 @@ done
[ "$kernel" ] || choose_kernel
[ "$rootsize" ] || set_rootsize

clear
Total_size="$((128+$rootsize))"
echo -e "\n\n\n\n\n\n\n\n\n
${green} Building Firmwares${normal}\n
Expand All @@ -573,8 +570,8 @@ done
wait
cleaning 0
chmod -R 777 $out
clear
pigz -qf $out/$device/Openwrt-$device-$kernel.img || gzip $out/$device/Openwrt-$device-$kernel.img
echo -e '\n\n\n\n\n\n\n\n\n'
echo " Selesai" | $lolcat -a -d 1
echo " Output file : out/$device/Openwrt-$device-$kernel.img" | $lolcat -a -d 30
clear

0 comments on commit f4e425c

Please sign in to comment.