Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
* triggered on push and pull request on main branch
  • Loading branch information
renpeipei-realtek committed Sep 12, 2024
1 parent ecd1a07 commit 80dd1af
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build amebaz2/z2plus

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout ameba-rtos-z2 main branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: ameba-rtos-z2

- name: Build amebaz2
run: |
echo "Setting up build environment"
cd ameba-rtos-z2/project/realtek_amebaz2_v0_example/GCC-RELEASE/
make clean
echo "Building firmware image"
make is
echo "Build image completed"
make clean
- name: Build amebaz2plus
run: |
echo "Setting up build environment"
cd ameba-rtos-z2/project/realtek_amebaz2plus_v0_example/GCC-RELEASE/
make clean
echo "Building firmware image"
make is
echo "Build image completed"
make clean

0 comments on commit 80dd1af

Please sign in to comment.