55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
|
|
# Update this file after adding/removing/renaming a target by running
|
|
# `make list-targets BROKEN=1 | ./contrib/actions/generate-actions.py > ./.github/workflows/build-gluon.yml`
|
|
|
|
name: Build Gluon
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- next*
|
|
- v20*
|
|
paths:
|
|
- "modules"
|
|
- "Makefile"
|
|
- "scripts/**"
|
|
- "package/**"
|
|
- "patches/**"
|
|
- "targets/**"
|
|
- ".github/workflows/build-gluon.yml"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- "modules"
|
|
- "Makefile"
|
|
- "scripts/**"
|
|
- "package/**"
|
|
- "patches/**"
|
|
- "targets/**"
|
|
- ".github/workflows/build-gluon.yml"
|
|
jobs:
|
|
build_firmware:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: [ath79-generic, ath79-nand, bcm27xx-bcm2708, bcm27xx-bcm2709, ipq40xx-generic, ipq806x-generic, lantiq-xrx200, lantiq-xway, mpc85xx-p1010, mpc85xx-p1020, ramips-mt7620, ramips-mt7621, ramips-mt76x8, ramips-rt305x, sunxi-cortexa7, x86-generic, x86-geode, x86-legacy, x86-64, bcm27xx-bcm2710, mvebu-cortexa9]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install Dependencies
|
|
run: sudo contrib/actions/install-dependencies.sh
|
|
- name: Build
|
|
run: contrib/actions/run-build.sh ${{ matrix.target }}
|
|
- name: Archive build logs
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: ${{ matrix.target }}_logs
|
|
path: openwrt/logs
|
|
- name: Archive build output
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: ${{ matrix.target }}_output
|
|
path: output
|
|
|