Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Action CI build #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Uboot Ubuntu CI Build
run-name: Uboot - ${{ inputs.board }} (${{ inputs.soc }})

on:
workflow_dispatch:
inputs:
soc:
required: true
description: SOC/CPU Model
type: string
default: mt7981
board:
required: true
description: Router Model Name
type: string
default: ax3000t
multi-layout:
required: true
description: Enable Multiple Flash Layout Support
type: choice
default: '1'
options:
- '0'
- '1'
runs-on:
required: true
description: Runs on...
type: choice
default: ubuntu-latest
options:
- ubuntu-22.04
- ubuntu-24.04
- ubuntu-latest

jobs:
ubuntu-build:
name: Build on ${{ inputs.runs-on }}
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Get build dept.
run: |
sudo apt update
sudo apt install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev
- name: Build it
run: |
./build.sh
env:
SOC: ${{ inputs.soc }}
BOARD: ${{ inputs.board }}
MULTI_LAYOUT: ${{ inputs.multi-layout }}
- uses: actions/upload-artifact@v4
with:
name: Uboot - ${{ inputs.board }} (${{ inputs.soc }})
path: output/*.bin