Skip to content

Commit 289c5a8

Browse files
authored
Create main.yml
Signed-off-by: cutiekitsu <naughtycutiekitsu@gmail.com>
1 parent 6dc6064 commit 289c5a8

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: JIDU6J11 Build
2+
3+
on:
4+
push:
5+
branches:
6+
- JIDU6J11
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-24.04
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
build-essential clang flex bison g++ gawk gcc-multilib \
23+
g++-multilib gettext git libncurses5-dev libssl-dev \
24+
python3 python3-setuptools rsync swig unzip zlib1g-dev \
25+
file wget
26+
27+
- name: Update feeds
28+
run: |
29+
./scripts/feeds update -a
30+
./scripts/feeds install -a
31+
32+
- name: Prepare config
33+
run: |
34+
make defconfig
35+
36+
- name: Download sources
37+
run: |
38+
make download -j$(nproc)
39+
40+
- name: Build
41+
run: |
42+
make -j$(nproc) V=s
43+
44+
- name: Upload firmware
45+
if: always()
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: firmware
49+
path: |
50+
bin/targets/**

0 commit comments

Comments
 (0)