forked from armarchindo/ULO-Builder
-
Notifications
You must be signed in to change notification settings - Fork 17
70 lines (61 loc) · 1.84 KB
/
autobuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Copyright (C) 2024 nosignals
#
name: ULO Autobuilder
on:
workflow_dispatch:
inputs:
version:
description: 'ulo'
required: true
default: 'ulo'
type: string
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