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

Commit

Permalink
Workflows: Don't use mkcd
Browse files Browse the repository at this point in the history
  • Loading branch information
SuLingGG committed Nov 19, 2021
1 parent 6ba5634 commit 3c85054
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bcm27xx-bcm2708.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -315,7 +316,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/bcm27xx-bcm2709.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -315,7 +316,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/bcm27xx-bcm2710.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -315,7 +316,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/bcm27xx-bcm2711.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -317,7 +318,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ipq40xx-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -314,7 +315,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/rockchip-armv8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -315,7 +316,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/x86-64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ jobs:
id: generate
run: |
if grep -q $DEVICE_TARGET/$DEVICE_SUBTARGET $GITHUB_WORKSPACE/data/support-targets.txt; then
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg
cd $OPENWRT_ROOT_PATH/files/etc/opkg
cp $GITHUB_WORKSPACE/data/opkg/distfeeds.conf .
sed -i "s/DEVICE_SUBTARGET/$DEVICE_SUBTARGET/g" distfeeds.conf
sed -i "s/DEVICE_TARGET/$DEVICE_TARGET/g" distfeeds.conf
Expand All @@ -315,7 +316,8 @@ jobs:
cmake .
make
sudo mv usign /bin
mkcd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
mkdir -p $OPENWRT_ROOT_PATH/files/etc/opkg/keys
cd $OPENWRT_ROOT_PATH/files/etc/opkg/keys
wget -q https://openwrt.cc/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET/key-build.pub
mv key-build.pub $(usign -F -p key-build.pub)
fi
Expand Down

0 comments on commit 3c85054

Please sign in to comment.