42 lines
976 B
YAML
42 lines
976 B
YAML
name: Build Gluon
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build_firmware:
|
|
needs: changed
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Read back changd targets to create build matrix
|
|
target: ath79-generic
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: LS
|
|
run: cd gluon && ls -alh
|
|
|
|
- name: Install Dependencies
|
|
run: gluon/contrib/actions/install-dependencies.sh
|
|
|
|
- name: Build
|
|
run: gluon/contrib/actions/run-build.sh ${{ matrix.target }}
|
|
|
|
- name: Archive build logs
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ matrix.target }}_logs
|
|
path: openwrt/logs
|
|
|
|
- name: Archive build output
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ matrix.target }}_output
|
|
path: output
|