Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bpi-r4-BE14-community.yaml #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/bpi-r4-BE14-community.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,21 @@ jobs:
run: |
./scripts/feeds update -a && ./scripts/feeds install -a

- name: environment variable - add date
run: echo "RELEASE_DATE=$(date +%F)" >> $GITHUB_ENV

- name: environment variable - add release branch
run: echo "RELEASE_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV

- name: Configure firmware image
run: |
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/${{ env.DEVICE_CONFIG }} > .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/luci >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/snapshot-short >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/${{ env.DEVICE_CONFIG }} > .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/configs/common/luci >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/configs/common/snapshot-short >> .config
sed -i '/CONFIG_PACKAGE_wpad-mbedtls=y/d' .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/openssl >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/configs/common/lte-5g-modem >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/master/${{ env.ROLE_CONFIG }} >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/configs/common/openssl >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/configs/common/lte-5g-modem >> .config
curl -SL https://raw.githubusercontent.com/${{ github.repository_owner }}/openwrt-builder/${{ env.RELEASE_BRANCH }}/${{ env.ROLE_CONFIG }} >> .config

- name: Run defconfig
run: |
Expand All @@ -86,6 +92,9 @@ jobs:
run: |
tar caf bin/targets/mediatek/filogic/packages.tar.gz bin/targets/mediatek/filogic/packages

- name: rename release files
run: for f in bin/targets/mediatek/filogic/openwrt-mediatek-filogic-bananapi_bpi-r4*; do mv "$f" "$(echo "$f" | sed s/openwrt-mediatek-filogic-bananapi_bpi-r4/openwrt-${{ env.RELEASE_DATE }}-${{ env.RELEASE_BRANCH }}-mediatek-filogic-bananapi_bpi-r4/)"; done

- name: Package output
run: tar -cvf bpi_r4-images.tar bin/targets/mediatek/filogic

Expand Down