build openwrt images #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Action to build openwrt images | |
--- | |
name: build openwrt images | |
on: | |
# Allows manual workflow run (must in default branch to work) | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
commit_long_sha: | |
required: true | |
type: string | |
# push: | |
# branches: | |
# - main | |
# paths: | |
# - 'custom-feed/**' | |
jobs: | |
build-openwrt-image: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repo from main if run from compare-release | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.commit_long_sha }} | |
- name: Build image | |
run: | | |
./openwrt-builder | |
- name: Upload openwrt tplink_archer-c7-v4 image artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openwrt-image.tplink_archer-c7-v4 | |
path: build-output.tplink_archer-c7-v4* | |
- name: Upload openwrt totolink_x5000r image artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openwrt-image.totolink_x5000r | |
path: build-output.totolink_x5000r* |