gluon-ci/.gitea/workflows/test.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

2023-05-18 14:19:49 +00:00
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
2023-05-18 14:37:38 +00:00
with:
submodules: recursive
2023-05-18 14:19:49 +00:00
2023-05-18 14:32:07 +00:00
- name: LS
2023-05-18 14:41:41 +00:00
run: ls -alh
working-directory: gluon
2023-05-18 14:33:50 +00:00
2023-05-18 14:19:49 +00:00
- name: Install Dependencies
2023-05-18 14:41:41 +00:00
run: contrib/actions/install-dependencies.sh
working-directory: gluon
2023-05-18 14:19:49 +00:00
- name: Build
2023-05-18 14:41:41 +00:00
run: contrib/actions/run-build.sh ${{ matrix.target }}
working-directory: gluon
2023-05-18 14:19:49 +00:00
- 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