Skip to content

Commit

Permalink
[ci] Update build to use OpenWrt 23.05
Browse files Browse the repository at this point in the history
Also show verbose output if compilation fails.
  • Loading branch information
nemesifier committed May 9, 2024
1 parent 6773525 commit e0f9aab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: "3.8"

- name: Install Python dependencies
run: pip install openwisp-utils[qa]>=0.7
run: pip install openwisp-utils[qa]

- name: Install Development dependencies
run: sudo ./install-dev.sh
Expand Down
7 changes: 4 additions & 3 deletions runbuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COMPILE_TARGET=${COMPILE_TARGET-mips_24kc}
LATEST_LINK="$DOWNLOADS_DIR/latest"
CORES=${CORES:-1}
CURRENT_DIR=$(pwd)
OPENWRT_BRANCH="openwrt-21.02"
OPENWRT_BRANCH="openwrt-23.05"

mkdir -p "$BUILD_DIR"
mkdir -p "$VERSIONED_DIR"
Expand All @@ -31,7 +31,7 @@ git checkout $OPENWRT_BRANCH
git reset --hard origin/$OPENWRT_BRANCH

# configure feeds
echo "src-git openwisp_config https://github.com/openwisp/openwisp-config.git^1.0.0" >feeds.conf
echo "src-git openwisp_config https://github.com/openwisp/openwisp-config.git^master" >feeds.conf
echo "src-link openwisp_monitoring $CURRENT_DIR" >>feeds.conf
cat feeds.conf.default >>feeds.conf
# remove unneeded feeds
Expand All @@ -51,7 +51,8 @@ if [ ! "$CI_CACHE" ]; then
make -j"$CORES" toolchain/install
fi

make -j"$CORES" package/openwisp-monitoring/compile || exit 1
make -j"$CORES" package/openwisp-monitoring/compile \
|| make -j1 V=s package/openwisp-monitoring/compile || exit 1

mv "$BUILD_DIR/openwrt/bin/packages/$COMPILE_TARGET/openwisp_monitoring" "$VERSIONED_DIR"

Expand Down

0 comments on commit e0f9aab

Please sign in to comment.