18cddd2046
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 2.3.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v1...v2.3.1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.4 KiB
YAML
59 lines
1.4 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*
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
changed:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
targets: ${{ steps.filter.outputs.changes }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# Filter targets based on changed files
|
|
- uses: dorny/paths-filter@v2
|
|
id: filter
|
|
with:
|
|
filters: .github/filters.yml
|
|
|
|
build_firmware:
|
|
needs: changed
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Read back changd targets to create build matrix
|
|
target: ${{ fromJSON(needs.changed.outputs.targets) }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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@v2.3.1
|
|
with:
|
|
name: ${{ matrix.target }}_logs
|
|
path: openwrt/logs
|
|
|
|
- name: Archive build output
|
|
uses: actions/upload-artifact@v2.3.1
|
|
with:
|
|
name: ${{ matrix.target }}_output
|
|
path: output
|
|
|