mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 16:51:53 +00:00
The OpenWrt config needs to have CONFIG_SRC_TREE_OVERRIDE enabled in order to build from the version checked out in the linked source-tree. This was forgotten when adding the CI and therefore the CI was always building the version from the packages feed.
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
name: Build DAWN
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: dawn
|
|
- name: Install dependencies
|
|
run: sudo apt install git subversion build-essential python gawk unzip libncurses5-dev zlib1g-dev libssl-dev wget time libncurses-dev
|
|
- name: Download OpenWrt SDK
|
|
run: curl -o openwrt-sdk.tar.xz https://downloads.openwrt.org/snapshots/targets/ath79/generic/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
- name: Extract OpenWrt SDK
|
|
run: tar xf openwrt-sdk.tar.xz && mv openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64 sdk
|
|
- name: Create config
|
|
run: make -C sdk defconfig && echo "CONFIG_SRC_TREE_OVERRIDE=y" >> sdk/.config
|
|
- name: Update package feed
|
|
run: ./sdk/scripts/feeds update -a && ./sdk/scripts/feeds install -a
|
|
- name: Link DAWN source
|
|
run: ln -s $GITHUB_WORKSPACE/dawn/.git sdk/feeds/packages/net/dawn/git-src
|
|
- name: Compile DAWN
|
|
run: make -C sdk package/dawn/{clean,compile} V=s
|
|
- name: Archive build output
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: output
|
|
path: sdk/bin/packages/mips_24kc/packages
|