3131 REPO_BRANCH : master
3232 FEEDS_CONF : feeds.conf.default
3333 CONFIG_FILE : config/j1900imt.config
34- DIY_P1_SH : diyJ1900imt-part1.sh
35- DIY_P2_SH : diyJ1900imt-part2.sh
34+ # DIY_P1_SH: diyJ1900imt-part1.sh
35+ # DIY_P2_SH: diyJ1900imt-part2.sh
3636 UPLOAD_BIN_DIR : true
3737 UPLOAD_FIRMWARE : true
3838 UPLOAD_COWTRANSFER : false
7676 - name : Load custom feeds
7777 run : |
7878 [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
79- chmod +x $DIY_P1_SH
79+ # chmod +x $DIY_P1_SH
8080 cd openwrt
81- $GITHUB_WORKSPACE/$DIY_P1_SH
81+ $GITHUB_WORKSPACE/$DIY_P1_SH
82+ #echo 'src-git kenzok8_small_package https://github.com/kenzok8/small-package' >>feeds.conf.default
8283 git clone https://github.com/BROBIRD/openwrt-r8168 ./package/r8168
8384
8485 - name : Update feeds
@@ -100,15 +101,32 @@ jobs:
100101 run : |
101102 [ -e files ] && mv files openwrt/files
102103 [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
103- chmod +x $DIY_P2_SH
104+ # chmod +x $DIY_P2_SH
104105 cd openwrt
105- $GITHUB_WORKSPACE/$DIY_P2_SH
106- curl -fsSL git.io/file-transfer | sh
107- ./transfer cow --block 2621440 -s -p 64 --no-progress .config 2>&1 | tee cowtransfer.log
108- echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)"
109- echo "::set-output name=url::$(cat cowtransfer.log | grep https | cut -f3 -d" ")"
110106
107+ #$GITHUB_WORKSPACE/$DIY_P2_SH
108+ # Modify default IP
109+ #sed -i 's/192.168.1.1/192.168.30.3/g' package/base-files/files/bin/config_generate
110+ sed -i 's/192.168.1.1/192.168.30.3/g' .config
111+ sed -i 's/192.168.30.255/192.168.30.255/g' .config
112+ # Modify hostname
113+ # sed -i 's/OpenWrt/OpenWrt-Calmact/g' package/base-files/files/bin/config_generate
114+
115+ # Add kernel build user
116+ # [ -z $(grep "CONFIG_KERNEL_BUILD_USER=" .config) ] &&
117+ # echo 'CONFIG_KERNEL_BUILD_USER="Calmact"' >>.config ||
118+ # sed -i 's@\(CONFIG_KERNEL_BUILD_USER=\).*@\1$"Calmact"@' .config
111119
120+ # Add kernel build domain
121+ # [ -z $(grep "CONFIG_KERNEL_BUILD_DOMAIN=" .config) ] &&
122+ # echo 'CONFIG_KERNEL_BUILD_DOMAIN="GitHub Actions"' >>.config ||
123+ # sed -i 's@\(CONFIG_KERNEL_BUILD_DOMAIN=\).*@\1$"GitHub Actions"@' .config
124+
125+
126+ curl -fsSL git.io/file-transfer | sh
127+ ./transfer wet -s -p 16 --no-progress .config 2>&1 | tee wetransfer.log
128+ echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)"
129+ echo "::set-output name=url::$(cat wetransfer.log | grep https | cut -f3 -d" ")"
112130
113131 - name : SSH connection to Actions
114132 uses : P3TERX/ssh2actions@v1.0.0
@@ -126,6 +144,7 @@ jobs:
126144 make check | tee check.log
127145 find dl -size -1024c -exec ls -l {} \;
128146 find dl -size -1024c -exec rm -f {} \;
147+
129148 - name : Compile the firmware
130149 id : compile
131150 run : |
@@ -141,11 +160,11 @@ jobs:
141160 run : |
142161 cd openwrt
143162 [ -e .config ] && mv .config ./bin/targets/x86/64/.config
163+ [ -e build_j8.log ] && mv build_j8.log ./bin/targets/x86/64/build_j8.log
164+ [ -e build_j2.log ] && mv build_j2.log ./bin/targets/x86/64/build_j2.log
144165 [ -e feeds.conf.default ] && mv feeds.conf.default ./bin/targets/x86/64/feeds.conf.default
145166 [ -e download.log ] && mv download.log ./bin/targets/x86/64/download.log
146167 [ -e check.log ] && mv check.log ./bin/targets/x86/64/check.log
147- [ -e build_j8.log ] && mv build_j8.log ./bin/targets/x86/64/build_j8.log
148- [ -e build_j2.log ] && mv build_j2.log ./bin/targets/x86/64/build_j2.log
149168
150169 - name : Check space usage
151170 if : (!cancelled())
0 commit comments