Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Workflows: Fix generate variables step
Browse files Browse the repository at this point in the history
  • Loading branch information
SuLingGG committed Oct 15, 2021
1 parent dc343b5 commit 4614798
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build-rpi4-lean-openwrt-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Blog: https://p3terx.com
#=================================================

name: Build Raspberry Pi 4 OpenWrt
name: Test Raspberry Pi 4 OpenWrt

on:
workflow_dispatch:
Expand Down Expand Up @@ -115,20 +115,15 @@ jobs:
id: make-env
run: |
cd $OPENWRTROOT
make diffconfig
cd $OPENWRTROOT/bin/packages/*
PLATFORM=$(basename `pwd`)
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
echo "::set-output name=PLATFORM::$(echo $PLATFORM)"
cd $OPENWRTROOT/bin/targets/*
TARGET=$(basename `pwd`)
export TARGET=$(cat .config | grep CONFIG_TARGET_BOARD | awk -F '"' '{print $2}')
echo "TARGET=$TARGET" >> $GITHUB_ENV
echo "::set-output name=TARGET::$(echo $TARGET)"
cd *
SUBTARGET=$(basename `pwd`)
export SUBTARGET=$(cat .config | grep CONFIG_TARGET_SUBTARGET | awk -F '"' '{print $2}')
echo "SUBTARGET=$SUBTARGET" >> $GITHUB_ENV
echo "::set-output name=SUBTARGET::$(echo $SUBTARGET)"
cd $OPENWRTROOT
export PLATFORM=$(cat .config | grep CONFIG_TARGET_ARCH_PACKAGES | awk -F '"' '{print $2}')
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
echo "::set-output name=PLATFORM::$(echo $PLATFORM)"
rm -rf .config dl bin
- name: Generate Toolchain Image
Expand Down

0 comments on commit 4614798

Please sign in to comment.