Skip to content

Commit d76c4a9

Browse files
committed
imt
1 parent db2c875 commit d76c4a9

File tree

6 files changed

+8741
-13
lines changed

6 files changed

+8741
-13
lines changed

.github/workflows/J1900_full.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
chmod +x $DIY_P1_SH
7373
cd openwrt
7474
$GITHUB_WORKSPACE/$DIY_P1_SH
75+
git clone https://github.com/kenzok8/small-package ./package/smallpackage
7576
git clone https://github.com/BROBIRD/openwrt-r8168 ./package/r8168
7677
7778
- name: Update feeds

.github/workflows/J1900_simple.yml renamed to .github/workflows/J1900_immortal.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#
1+
#
22
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
33
#
44
# This is free software, licensed under the MIT License.
@@ -8,31 +8,34 @@
88
# Description: Build OpenWrt using GitHub Actions
99
#
1010

11-
name: j1900_simple OpenWrt
11+
name: j1900_x86 immortalWrt
1212

13-
on:
13+
on:
14+
push:
15+
branches:
16+
- main
1417
repository_dispatch:
1518
workflow_dispatch:
1619
inputs:
1720
ssh:
1821
description: 'SSH connection to Actions'
1922
required: true
20-
default: 'false'
23+
default: 'True'
2124
schedule:
2225
- cron: 0 19 * * *
2326
# watch:
2427
# types: started
2528

2629
env:
27-
REPO_URL: https://www.github.com/openwrt/openwrt
30+
REPO_URL: https://github.com/immortalwrt/immortalwrt
2831
REPO_BRANCH: master
2932
FEEDS_CONF: feeds.conf.default
30-
CONFIG_FILE: config/j1900s.config
31-
DIY_P1_SH: diyJ1900-part1.sh
32-
DIY_P2_SH: diyJ1900-part2.sh
33+
CONFIG_FILE: config/j1900imt.config
34+
DIY_P1_SH: diyJ1900imt-part1.sh
35+
DIY_P2_SH: diyJ1900imt-part2.sh
3336
UPLOAD_BIN_DIR: true
3437
UPLOAD_FIRMWARE: true
35-
UPLOAD_COWTRANSFER: true
38+
UPLOAD_COWTRANSFER: false
3639
UPLOAD_WETRANSFER: true
3740
UPLOAD_RELEASE: false
3841
TZ: Asia/Shanghai
@@ -50,8 +53,15 @@ jobs:
5053
DEBIAN_FRONTEND: noninteractive
5154
run: |
5255
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
53-
sudo -E apt-get -qq update
54-
sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-1804)
56+
sudo apt update -y
57+
sudo apt full-upgrade -y
58+
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
59+
bzip2 ccache cmake cpio curl device-tree-compiler ecj fastjar flex gawk gettext gcc-multilib g++-multilib \
60+
git gperf haveged help2man intltool lib32gcc1 libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \
61+
libmpc-dev libmpfr-dev libncurses5-dev libncursesw5 libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \
62+
mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip python3-ply \
63+
python-docutils qemu-utils re2c rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip \
64+
vim wget xmlto xxd zlib1g-dev
5565
sudo -E apt-get -qq autoremove --purge
5666
sudo -E apt-get -qq clean
5767
sudo timedatectl set-timezone "$TZ"
@@ -61,7 +71,7 @@ jobs:
6171
working-directory: /workdir
6272
run: |
6373
df -hT $PWD
64-
git clone $REPO_URL -b $REPO_BRANCH openwrt
74+
git clone -b $REPO_BRANCH --single-branch $REPO_URL openwrt
6575
ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt
6676
- name: Load custom feeds
6777
run: |
@@ -77,6 +87,15 @@ jobs:
7787
- name: Install feeds
7888
run: cd openwrt && ./scripts/feeds install -a
7989

90+
91+
92+
- name: SSH connection to Actions
93+
uses: P3TERX/[email protected]
94+
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
95+
env:
96+
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
97+
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
98+
8099
- name: Load custom configuration
81100
run: |
82101
[ -e files ] && mv files openwrt/files

0 commit comments

Comments
 (0)