Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lisaac committed Jan 12, 2020
1 parent ac35e91 commit 4db94d2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
[ -d $GITHUB_WORKSPACE/luasrc ] && cp -R $GITHUB_WORKSPACE/luasrc/* /tmp/luci-app-diskman/usr/lib/lua/luci/
[ -d $GITHUB_WORKSPACE/root ] && cp -R $GITHUB_WORKSPACE/root/* /tmp/luci-app-diskman/
[ -d $GITHUB_WORKSPACE/htdoc ] && cp -R $GITHUB_WORKSPACE/htdoc/* /tmp/luci-app-diskman/www/
[ -d $GITHUB_WORKSPACE/po ] &&
sudo -E apt-get -y install gcc make && \
mkdir -p /tmp/po2lmo && mkdir -p /tmp/luci-app-diskman/usr/lib/lua/luci/i18n/ && \
wget -O /tmp/po2lmo/po2lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/po2lmo.c && \
wget -O /tmp/po2lmo/Makefile https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/Makefile && \
wget -O /tmp/po2lmo/template_lmo.h https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.h && \
wget -O /tmp/po2lmo/template_lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.c && \
cd /tmp/po2lmo && make po2lmo && ./po2lmo $GITHUB_WORKSPACE/po/zh-cn/diskman.po /tmp/luci-app-diskman/usr/lib/lua/luci/i18n/diskman.zh-cn.lmo
mkdir -p /tmp/luci-app-diskman/CONTROL
cat >/tmp/luci-app-diskman/CONTROL/control <<EOF
Package: luci-app-diskman
Expand All @@ -39,13 +47,6 @@ jobs:
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
EOF
chmod +x /tmp/luci-app-diskman/CONTROL/postinst
sudo -E apt-get -y install gcc make && \
mkdir -p /tmp/po2lmo && \
wget -O /tmp/po2lmo/po2lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/po2lmo.c && \
wget -O /tmp/po2lmo/Makefile https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/Makefile && \
wget -O /tmp/po2lmo/template_lmo.h https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.h && \
wget -O /tmp/po2lmo/template_lmo.c https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/src/template_lmo.c && \
cd /tmp/po2lmo && make po2lmo && sudo -E cp po2lmo /usr/bin/ && sudo -E chmod +x /usr/bin/po2lmo
wget -O /tmp/ipkg-build https://raw.githubusercontent.com/openwrt/openwrt/master/scripts/ipkg-build && \
chmod +x /tmp/ipkg-build && \
/tmp/ipkg-build -o root -g root /tmp/luci-app-diskman /tmp
Expand Down

0 comments on commit 4db94d2

Please sign in to comment.