27
27
remove-android : ' true'
28
28
remove-haskell : ' true'
29
29
remove-codeql : ' true'
30
+ remove-docker-images : ' true'
30
31
31
32
- name : modify docker path
32
33
run : |
@@ -37,39 +38,16 @@ jobs:
37
38
sudo ln -sf ${{ github.workspace }}/docker /var/lib/docker
38
39
sudo systemctl start docker
39
40
40
-
41
- - name : Run Make
42
- uses : addnab/docker-run-action@v3
41
+ - name : Checkout
42
+ uses : actions/checkout@v2
43
43
with :
44
- image : openwrt/sdk:${{ matrix.arch }}-${{ matrix.version }}
45
- options : --user root
46
- run : |
47
- export VOLUME_HOME=$(pwd)
48
- export BUILD_DIR="/builder"
49
- export BUILDER="buildbot"
50
- cd $BUILD_DIR
51
- apt-get update
52
- apt install sudo tree -y
53
- sudo -u $BUILDER mkdir package/luci-app-openclash
54
- pushd package/luci-app-openclash
55
- sudo -u $BUILDER git init
56
- sudo -u $BUILDER git remote add -f origin https://github.com/vernesong/OpenClash.git
57
- sudo -u $BUILDER git config core.sparsecheckout true
58
- sudo -u $BUILDER echo "luci-app-openclash" >> .git/info/sparse-checkout
59
- sudo -u $BUILDER git pull origin master
60
- sudo -u $BUILDER git branch --set-upstream-to=origin/master master
61
- popd
44
+ fetch-depth : 0
62
45
63
- pushd package/luci-app-openclash/luci-app-openclash/tools/po2lmo
64
- sudo -u $BUILDER make && sudo make install
65
- popd
46
+ - name : Run Make
47
+ run : |
48
+ chmod +x ${{ github.workspace }}/build_clash.sh
49
+ docker run -dit --name openwrt-sdk-${{ matrix.arch }}-${{ matrix.version }} --user root -v ${{ github.workspace }}/build_clash.sh:/build_clash.sh openwrt/sdk:${{ matrix.arch }}-${{ matrix.version }} /build_clash.sh
66
50
67
- sudo -u $BUILDER make defconfig
68
- echo "================== DEBUG PRINT BEGIN =================="
69
- cat .config
70
- echo "================== DEBUG PRINT END =================="
71
- sudo -u $BUILDER make package/luci-app-openclash/luci-app-openclash/compile V=99
72
- tree bin/packages
73
51
74
52
build_passwall :
75
53
strategy :
0 commit comments