@@ -94,57 +94,42 @@ jobs:
94
94
exit 1
95
95
fi
96
96
97
- # - name: Update feeds
98
- # run: |
99
- # echo "Vermagic:"
100
- # cat ./build_dir/target-*/linux-*/linux-*/.vermagic
101
-
102
- # wget https://downloads.openwrt.org/releases/${{ matrix.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/feeds.buildinfo -O feeds.conf
103
- # echo "src-git awgopenwrt https://github.com/yury-sannikov/awg-openwrt.git" >> ./feeds.conf
104
-
105
- # ./scripts/feeds update luci
106
- # ./scripts/feeds install -a -p luci
107
- # ./scripts/feeds update awgopenwrt
108
- # ./scripts/feeds install -a -p awgopenwrt
109
-
110
- # # wget https://downloads.openwrt.org/releases/${{ matrix.tag }}/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/config.buildinfo -O .config
111
- # # echo "CONFIG_PACKAGE_kmod-amneziawg=m" >> .config
112
- # # echo "CONFIG_PACKAGE_amneziawg-tools=y" >> .config
113
- # # echo "CONFIG_PACKAGE_luci-app-amneziawg=y" >> .config
114
- # # echo "CONFIG_PACKAGE_kmod-amneziawg=m" >> .config
115
- # # echo "CONFIG_PACKAGE_kmod-crypto-lib-chacha20=m" >> .config
116
- # # echo "CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=m" >> .config
117
- # # echo "CONFIG_PACKAGE_kmod-crypto-chacha20poly1305=m" >> .config
118
-
119
- # # make defconfig
120
-
121
- # - name: Build amneziawg-tools
122
- # run: |
123
- # cat ./build_dir/target-*/linux-*/linux-*/.vermagic || true
124
- # make V=s package/amneziawg-tools/{clean,download,prepare}
125
- # make V=s package/amneziawg-tools/compile
126
-
127
- # - name: Build kmod-amneziawg
128
- # run: |
129
- # make package/kmod-amneziawg/{clean,download,prepare}
130
- # make package/kmod-amneziawg/compile
131
-
132
- # - name: Build luci
133
- # run: |
134
- # make package/luci-app-amneziawg/{clean,download,prepare}
135
- # make package/luci-app-amneziawg/compile V=s
136
-
137
- # - name: Prepare artifacts
138
- # run: |
139
- # tag_name=${{ github.ref_name }}
140
- # mkdir -p awgrelease
141
- # postfix="${tag_name}_v${{ matrix.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
142
- # cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
143
- # cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
144
- # cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
145
-
146
- # - name: Release
147
- # uses: softprops/action-gh-release@v1
148
- # with:
149
- # files: awgrelease/*.ipk
97
+ - name : Build amneziawg-tools
98
+ run : |
99
+ VERMAGIC=`cat ./build_dir/target-*/linux-*/linux-*/.vermagic`
100
+ echo "Vermagic: $VERMAGIC"
101
+
102
+ VERMAGIC_EXPECTED=${{ matrix.build_env.vermagic }}
103
+
104
+ if [ "$VERMAGIC" != "$VERMAGIC_EXPECTED" ]; then
105
+ echo Vermagic mismatch: $VERMAGIC, expected $VERMAGIC_EXPECTED
106
+ exit 1
107
+ fi
108
+
109
+ make V=s package/amneziawg-tools/{clean,download,prepare}
110
+ make V=s package/amneziawg-tools/compile
111
+
112
+ - name : Build kmod-amneziawg
113
+ run : |
114
+ make package/kmod-amneziawg/{clean,download,prepare}
115
+ make package/kmod-amneziawg/compile
116
+
117
+ - name : Build luci
118
+ run : |
119
+ make package/luci-app-amneziawg/{clean,download,prepare}
120
+ make package/luci-app-amneziawg/compile V=s
121
+
122
+ - name : Prepare artifacts
123
+ run : |
124
+ tag_name=${{ github.ref_name }}
125
+ mkdir -p awgrelease
126
+ postfix="${tag_name}_v${{ matrix.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
127
+ cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
128
+ cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
129
+ cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
130
+
131
+ - name : Release
132
+ uses : softprops/action-gh-release@v1
133
+ with :
134
+ files : awgrelease/*.ipk
150
135
0 commit comments