Update ulo #2
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
# | |
# 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 | |