* Update main.yml (#1)

* Update Makefile

* Update Makefile

* Update main.yml

* Update main.yml

* Update Makefile

* Update main.yml

* Update Makefile
This commit is contained in:
练亮斌 2021-09-22 18:18:12 +08:00 committed by GitHub
parent 0599036718
commit b53f2b2526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 14 deletions

View File

@ -9,20 +9,19 @@ on:
- 'applications/**' - 'applications/**'
env: env:
SDK_NAME: openwrt-sdk-19.07.8-armvirt-64_gcc-7.5.0_musl.Linux-x86_64 SDK_NAME: openwrt-sdk-19.07.8-mvebu-cortexa53_gcc-7.5.0_musl.Linux-x86_64
SDK_URL: https://downloads.openwrt.org/releases/19.07.8/targets/armvirt/64/ SDK_URL: https://downloads.openwrt.org/releases/19.07.8/targets/mvebu/cortexa53/
TZ: Asia/Shanghai TZ: Asia/Shanghai
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Build Meta name: Build IPKs
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@main uses: actions/checkout@main
with: with:
path: 'meta' path: 'apps'
fetch-depth: 5
- name: Initialization environment - name: Initialization environment
env: env:
@ -44,8 +43,8 @@ jobs:
- name: Unpack SDK - name: Unpack SDK
run: tar -xJf ${SDK_NAME}.tar.xz run: tar -xJf ${SDK_NAME}.tar.xz
# - name: Clean Code - name: Clean Code
# run: rm -f ${SDK_NAME}/package/linux/modules/* run: rm -f ${SDK_NAME}/package/linux/modules/*
- name: Write Config - name: Write Config
run: | run: |
@ -54,16 +53,19 @@ jobs:
EOF EOF
- name: Load custom feeds - name: Load custom feeds
run: echo "src-link meta `pwd`/meta/applications" > ${SDK_NAME}/feeds.conf.default run: echo "src-link apps `pwd`/apps/applications" >> ${SDK_NAME}/feeds.conf.default
- name: Update feeds - name: Update feeds
run: cd ${SDK_NAME} && ./scripts/feeds update meta && ./scripts/feeds install -a -p meta run: |
cd ${SDK_NAME}
./scripts/feeds update -a
./scripts/feeds install -a -p apps -d y
- name: Compile Meta - name: Compile IPKs
id: compile id: compile
run: | run: |
cd ${SDK_NAME} cd ${SDK_NAME}
bash -c 'set -o pipefail ; make -j1 V=s defconfig package/{compile,index} 2>&1 | tee /tmp/openwrt-sdk-build.log' bash -c 'set -o pipefail ; make -j1 V=s defconfig package/compile 2>&1 | tee /tmp/openwrt-sdk-build.log'
echo "::set-output name=status::success" echo "::set-output name=status::success"
- name: Last fail log - name: Last fail log
@ -74,5 +76,5 @@ jobs:
uses: actions/upload-artifact@main uses: actions/upload-artifact@main
if: steps.compile.outputs.status == 'success' if: steps.compile.outputs.status == 'success'
with: with:
name: OpenWrt_bin name: apps
path: ${SDK_NAME}/bin/packages path: ${{ env.SDK_NAME }}/bin/packages/aarch64_cortex-a53/apps