Skip to content

Commit 62ae53e

Browse files
committed
ci: update ubuntu pipeline and move replacehostapd from script to pipeline
1 parent 1e3ab29 commit 62ae53e

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
if: ${{ inputs.bpi-r4 }}
9090
run: |
9191
#echo -e "skipkerneldownload=1\nkernelfile=${{ env.R4Kernel }}" > sourcefiles_bpi-r4.conf
92+
echo -e "replacehostapd=1\nreplaceiperf=1" > sourcefiles_bpi-r4.conf
9293
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r4.conf
9394
./buildimg.sh bpi-r4 ${{ vars.DEBIAN_DIST }}
9495

.github/workflows/ubuntu.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,33 @@ jobs:
6161
- name: Build R2 Ubuntu ${{ vars.UBUNTU_DIST }} Image
6262
if: ${{ inputs.bpi-r2 }}
6363
run: |
64+
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r2.conf
6465
./buildimg.sh bpi-r2 ${{ vars.UBUNTU_DIST }}
6566
./buildimg.sh bpi-r2 ${{ vars.UBUNTU_DIST }} 6.12
6667
6768
- name: Build R64 Ubuntu ${{ vars.UBUNTU_DIST }} Image
6869
if: ${{ inputs.bpi-r64 }}
6970
run: |
71+
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r64.conf
7072
./buildimg.sh bpi-r64 ${{ vars.UBUNTU_DIST }}
7173
7274
- name: Build R2Pro Ubuntu ${{ vars.UBUNTU_DIST }} Image
7375
if: ${{ inputs.bpi-r2pro }}
7476
run: |
77+
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r2pro.conf
7578
./buildimg.sh bpi-r2pro ${{ vars.UBUNTU_DIST }}
7679
7780
- name: Build R3 Ubuntu ${{ vars.UBUNTU_DIST }} Image
7881
if: ${{ inputs.bpi-r3 }}
7982
run: |
83+
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r3.conf
8084
./buildimg.sh bpi-r3 ${{ vars.UBUNTU_DIST }}
8185
8286
- name: Build R4 Ubuntu ${{ vars.UBUNTU_DIST }} Image
8387
if: ${{ inputs.bpi-r4 }}
8488
run: |
89+
echo -e "replacehostapd=1\nreplaceiperf=1" > sourcefiles_bpi-r4.conf
90+
echo -e "userpackages=\"${{ inputs.packages }}\"" >> sourcefiles_bpi-r4.conf
8591
./buildimg.sh bpi-r4 ${{ vars.UBUNTU_DIST }}
8692
8793
- name: Upload to gdrive

buildimg.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ then
1717
fi
1818
if [[ -n "$3" ]] && [[ "$3" =~ ^[1-9]\.[0-9]+$ ]];then kernel=$3;fi
1919

20-
if [[ "$board" == "bpi-r4" ]]; then
21-
echo "replacehostapd=1" >> sourcefiles_${board}.conf
22-
fi
23-
2420
PACKAGE_Error=0
2521
PACKAGES=$(dpkg -l | awk '{print $2}')
2622
NEEDED_PKGS="python3 python3-requests parted qemu-user-static debootstrap binfmt-support"

0 commit comments

Comments
 (0)