mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-18 10:04:14 +00:00
support github actions
This commit is contained in:
parent
328029ce20
commit
e96516f52e
36
.github/workflows/build-snapshot.yml
vendored
Normal file
36
.github/workflows/build-snapshot.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
# Controls when the action will run.
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 * * *'
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# build source code
|
||||||
|
- name: build
|
||||||
|
run: cd ~/work/runner-script/sdk4_script && ./build_firmware_by_source
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ./snapshot_firmware
|
||||||
|
path: |
|
||||||
|
./bin/target/**/*squashfs-sysupgrade.bin
|
||||||
|
./bin/target/**/*squashfs-sysupgrade.img
|
||||||
|
./bin/target/**/*squashfs-sysupgrade.tar
|
||||||
Loading…
Reference in New Issue
Block a user