mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
github: add GitHub Actions CI
This adds a GitHub actions workflow for building DAWN from this repository using the OpenWrt SDK. The resulting package is archived as an artifact available to download.
This commit is contained in:
parent
617080a7c9
commit
1ecbea1514
1 changed files with 32 additions and 0 deletions
32
.github/workflows/build.yml
vendored
Normal file
32
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Build DAWN
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
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
|
||||||
|
- name: Update package feed
|
||||||
|
run: ./sdk/scripts/feeds update -a && ./sdk/scripts/feeds install -a
|
||||||
|
- name: Link DAWN source
|
||||||
|
run: ln -s 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
|
Loading…
Add table
Add a link
Reference in a new issue