2020-03-29 00:27:46 +00:00
|
|
|
|
|
|
|
# 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:
|
2020-04-09 18:33:25 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-05-01 11:34:37 +00:00
|
|
|
- next*
|
2020-04-09 18:33:25 +00:00
|
|
|
- v20*
|
2021-01-02 16:23:33 +00:00
|
|
|
paths:
|
|
|
|
- "modules"
|
|
|
|
- "Makefile"
|
|
|
|
- "scripts/**"
|
|
|
|
- "package/**"
|
|
|
|
- "patches/**"
|
|
|
|
- "targets/**"
|
|
|
|
- ".github/workflows/build-gluon.yml"
|
2020-03-29 00:27:46 +00:00
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2021-01-02 16:23:33 +00:00
|
|
|
paths:
|
|
|
|
- "modules"
|
|
|
|
- "Makefile"
|
|
|
|
- "scripts/**"
|
|
|
|
- "package/**"
|
|
|
|
- "patches/**"
|
|
|
|
- "targets/**"
|
|
|
|
- ".github/workflows/build-gluon.yml"
|
2020-03-29 00:27:46 +00:00
|
|
|
jobs:
|
2020-12-29 13:46:32 +00:00
|
|
|
build_firmware:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-06-27 11:54:21 +00:00
|
|
|
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, rockchip-armv8, sunxi-cortexa7, x86-generic, x86-geode, x86-legacy, x86-64, bcm27xx-bcm2710, mvebu-cortexa9]
|
2021-04-05 02:09:42 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-03-29 00:27:46 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-04-05 13:20:58 +00:00
|
|
|
- name: Install Dependencies
|
2020-05-12 08:59:57 +00:00
|
|
|
run: sudo contrib/actions/install-dependencies.sh
|
2020-03-29 00:27:46 +00:00
|
|
|
- name: Build
|
2020-12-29 13:46:32 +00:00
|
|
|
run: contrib/actions/run-build.sh ${{ matrix.target }}
|
2020-05-12 08:44:18 +00:00
|
|
|
- name: Archive build logs
|
|
|
|
if: ${{ !cancelled() }}
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-12-29 13:46:32 +00:00
|
|
|
name: ${{ matrix.target }}_logs
|
2020-05-12 08:44:18 +00:00
|
|
|
path: openwrt/logs
|
2020-03-29 00:27:46 +00:00
|
|
|
- name: Archive build output
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-12-29 13:46:32 +00:00
|
|
|
name: ${{ matrix.target }}_output
|
2020-03-29 00:27:46 +00:00
|
|
|
path: output
|
|
|
|
|