diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6e0129..a7cb98e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,5 +9,46 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + + - name: Get current time + uses: 1466587594/get-current-time@v2 + id: current-time + with: + format: YYYYMMDDTHHmmss + utcOffset: "+08:00" + + - name: Setup Environment + run: | + apt -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync + + - name: Setup OpenWRT SDK + run: | + wget https://downloads.openwrt.org/releases/19.07.7/targets/ramips/mt7620/openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64.tar.xz + tar -xvJf openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64.tar.xz + cd openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64 + ./scripts/feeds update -a + ./scripts/feeds install -a + + - name: Checkout + uses: actions/checkout@v2 + with: + path: openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64/package + + - name: Compile Package + working-directory: ./openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64 + run: | + make defconfig + make package/UA2F/compile + + - name: Release Package + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "${{ steps.current-time.outputs.formattedTime }}" + prerelease: true + files: | + openwrt-sdk-19.07.7-ramips-mt7620_gcc-7.5.0_musl.Linux-x86_64/bin/packages/mipsel_24kc/base/ua2f* + + +