Skip to content

Commit

Permalink
Build for 1.3.1 in CI
Browse files Browse the repository at this point in the history
Updated `Mount /etc/resolv.conf` from ro to rw as this file is needed by
1.3.1 when installing resovconf.
  • Loading branch information
sunytt committed Jun 4, 2024
1 parent a00c2ec commit 3d03ca9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
submodules: recursive
- name: Build reference release for 1.3
- name: Build nrf52840 CLI reference release for 1.3.1
run: |
git submodule status
export PATH=/tmp/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH
REFERENCE_PLATFORM=nrf52840 REFERENCE_RELEASE_TYPE=1.3 ./script/make-reference-release.bash
REFERENCE_TYPE=CLI REFERENCE_PLATFORM=nrf52840 REFERENCE_RELEASE_TYPE=1.3.1 ./script/make-reference-release.bash
- uses: actions/upload-artifact@v3
with:
name: reference-releases
Expand Down
2 changes: 1 addition & 1 deletion script/make-raspbian.bash
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ main()

# Mount /etc/resolv.conf
if [ -f "/etc/resolv.conf" ]; then
sudo mount -o ro,bind /etc/resolv.conf "$QEMU_ROOT"/etc/resolv.conf
sudo mount -o rw,bind /etc/resolv.conf "$QEMU_ROOT"/etc/resolv.conf
fi

# Start RPi QEMU machine
Expand Down
3 changes: 2 additions & 1 deletion script/otbr-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ readonly OTBR_THREAD_1_3_1_OPTIONS=(
"-DOT_THREAD_VERSION=1.3.1"
"-DOTBR_TREL=ON"
"-DOTBR_NAT64=ON"
"-DOT_BORDER_ROUTING_DHCP6_PD=ON"
)

build_options=(
Expand Down Expand Up @@ -175,7 +176,7 @@ chown -R pi:pi /home/pi/repo
cd /home/pi/repo/ot-br-posix
apt-get update
apt-get install -y --no-install-recommends git python3-pip
su -c "${build_options[*]} script/bootstrap" pi
su -c "export DOCKER=1; ${build_options[*]} script/bootstrap" pi

rm -rf /home/pi/repo/ot-br-posix/third_party/openthread/repo
cp -r /home/pi/repo/openthread /home/pi/repo/ot-br-posix/third_party/openthread/repo
Expand Down

0 comments on commit 3d03ca9

Please sign in to comment.