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

42 lines
1.1 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:
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:45:22 +00:00
- name: Install missing PUB Key
run: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
2023-05-18 15:25:34 +00:00
with:
distro: ubuntu20.04
2023-05-18 14:33:50 +00:00
2023-05-18 14:48:57 +00:00
- name: Update APT Repos
run: apt-get -y update
2023-05-18 15:16:43 +00:00
2023-05-18 14:48:57 +00:00
- name: Install dependencies
run: apt-get -y install git subversion build-essential python3 gawk unzip libncurses5-dev zlib1g-dev libssl-dev wget time qemu-utils
2023-05-18 14:19:49 +00:00
- name: Build
2023-05-18 15:05:18 +00:00
run: contrib/actions/run-build.sh mediatek-mt7622
2023-05-18 14:41:41 +00:00
working-directory: gluon
2023-05-18 14:19:49 +00:00
- name: Archive build logs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3
with:
2023-05-18 15:05:18 +00:00
name: mediatek-mt7622_logs
2023-05-18 14:19:49 +00:00
path: openwrt/logs
- name: Archive build output
uses: actions/upload-artifact@v3
with:
2023-05-18 15:05:18 +00:00
name: mediatek-mt7622_output
2023-05-18 14:19:49 +00:00
path: output