Skip to content

Commit

Permalink
ci: update build.yaml with 2023.04 variant (splitted steps for each dev)
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Oct 28, 2023
1 parent e6136f6 commit 67b59b0
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ jobs:
- name: Build for BananaPi-R64
run: |
git checkout build.conf
sed -i 's/#\(board=bpi-r64\)/\1/' build.conf #change board to r64
echo -e "board=bpi-r64" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r64\ndevice=sdmmc" > build.conf
Expand All @@ -78,26 +77,23 @@ jobs:
rm build.conf
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
- name: Build for BananaPi-R2Pro
run: |
git checkout build.conf
sed -i 's/#\(board=bpi-r2pro\)/\1/' build.conf #change board to r2pro
echo -e "board=bpi-r2pro" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh createimg
bash build.sh rename
git checkout build.conf
- name: Build for BananaPi-R3
- name: Build for BananaPi-R3 (SD)
run: |
git checkout build.conf
sed -i 's/\(device=.*\)$/#\1/' build.conf #change device back to sd
sed -i 's/#\(board=bpi-r3\)/\1/' build.conf #change board to r3
echo -e "board=bpi-r3" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r3\ndevice=sdmmc" > build.conf
Expand All @@ -106,13 +102,14 @@ jobs:
bash build.sh createimg non-interactive
rm build.conf
- name: Build for BananaPi-R3 (EMMC)
run: |
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
sed -i 's/#\(device=emmc\)/\1/' build.conf #change device
echo -e "board=bpi-r3\ndevice=emmc" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r3\ndevice=emmc" > build.conf
Expand All @@ -121,45 +118,44 @@ jobs:
bash build.sh createimg non-interactive
rm build.conf
- name: Build for BananaPi-R3 (NAND)
run: |
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
sed -i 's/#\(device=spi-nand\)/\1/' build.conf #change device
echo -e "board=bpi-r3\ndevice=spi-nand" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r3\ndevice=spim-nand" > build.conf
bash build.sh build
bash build.sh rename
rm build.conf
- name: Build for BananaPi-R3 (NOR)
run: |
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
sed -i 's/#\(device=spi-nor\)/\1/' build.conf #change device
echo -e "board=bpi-r3\ndevice=spi-nor" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r3\ndevice=nor" > build.conf
bash build.sh build
bash build.sh rename
rm build.conf
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
- name: Build for BananaPi-R4
- name: Build for BananaPi-R4 (SD)
run: |
git checkout build.conf
sed -i 's/#\(board=bpi-r4\)/\1/' build.conf #change board to r4
git checkout ${{ env.BRANCH }}
echo -e "board=bpi-r4" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r4\ndevice=sdmmc" > build.conf
Expand All @@ -168,13 +164,14 @@ jobs:
bash build.sh createimg non-interactive
rm build.conf
- name: Build for BananaPi-R4 (EMMC)
run: |
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
sed -i 's/#\(device=emmc\)/\1/' build.conf #change device
echo -e "board=bpi-r4\ndevice=emmc" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r4\ndevice=emmc" > build.conf
Expand All @@ -183,13 +180,14 @@ jobs:
bash build.sh createimg non-interactive
rm build.conf
- name: Build for BananaPi-R4 (NAND)
run: |
git checkout ${{ env.BRANCH }}
git stash pop #restore build.conf
sed -i 's/#\(device=spi-nand\)/\1/' build.conf #change device
echo -e "board=bpi-r4\ndevice=spi-nand" > build.conf
bash build.sh importconfig
bash build.sh build
bash build.sh rename
git stash #stash build.conf
git checkout build.conf
git checkout mtk-atf
echo -e "board=bpi-r4\ndevice=spim-nand" > build.conf
Expand Down

0 comments on commit 67b59b0

Please sign in to comment.