2024-01-22 09:43:21 +08:00

43 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: 编译luci-app-caddy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 下载工具链
run: |
sudo timedatectl set-timezone Asia/Shanghai
wget -qO /opt/sdk.tar.xz https://downloads.openwrt.org/releases/22.03.5/targets/rockchip/armv8/openwrt-sdk-22.03.5-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64.tar.xz
tar -xJf /opt/sdk.tar.xz -C /opt
git clone https://github.com/lmq8267/luci-app-caddy.git /opt/caddy
cd /opt/openwrt-sdk*/package
cp -R /opt/caddy/luci-app-caddy .
cd /opt/openwrt-sdk*
./scripts/feeds update -a
make defconfig
- name: 开始编译
run: |
cd /opt/openwrt-sdk*
make package/luci-app-caddy/compile V=s -j1
cd /opt/openwrt-sdk*/bin/packages/aarch64_generic/base
ls
mv *.ipk luci-app-caddy_all.ipk
echo "build_time=$(date '+%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
echo "tag=$(date '+%Y-%m-%d')" >> $GITHUB_ENV
- name: 发布
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.c8 }}
body: |
> ### 编译时间 ${{ env.build_time }}
二进制程序下载地址:[caddy](https://github.com/lmq8267/caddy/releases)
tag_name: ${{ env.tag }}
files: /opt/openwrt-sdk*/bin/packages/aarch64_generic/base/*