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

Silabs thieu vu patch 1 #31

Merged
merged 10 commits into from
Oct 16, 2024
22 changes: 19 additions & 3 deletions .github/workflows/00-Check_Coding_Convention.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,26 @@ jobs:
steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
uses: actions/[email protected]

- name: Install python3.11
if: always()
run: |
Expand Down
44 changes: 42 additions & 2 deletions .github/workflows/01-Generate_Firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,28 @@ jobs:
ADAPTER_SN: 440133193
CHIP: EFR32MG24BXXXF1536
steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
uses: actions/[email protected]

- name: Install Simplicity SDK
if: always()
run: |
Expand Down Expand Up @@ -179,8 +199,28 @@ jobs:
ADAPTER_SN: 440189400
CHIP: EFR32MG12
steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
uses: actions/[email protected]

- name: Install Simplicity SDK
if: always()
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 03-Run Unit Test
name: 02-Run Unit Test
on:
pull_request:
branches:
Expand Down Expand Up @@ -35,10 +35,28 @@ jobs:
START_ADDR_FLASH: 0x8000000

steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
uses: actions/[email protected]

- name: Add extension
run: |
cd $SDK_PATH
Expand Down Expand Up @@ -106,10 +124,28 @@ jobs:
START_ADDR_FLASH: 0x0000000

steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
uses: actions/[email protected]

- name: Add extension
run: |
cd $SDK_PATH
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 04-Integration Test
name: 03-Run Integration Test
on:
pull_request:
branches:
Expand Down Expand Up @@ -35,10 +35,28 @@ jobs:
START_ADDR_FLASH: 0x8000000

steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
uses: actions/[email protected]

- name: Add extension
run: |
cd $SDK_PATH
Expand Down Expand Up @@ -104,10 +122,28 @@ jobs:
START_ADDR_FLASH: 0x0000000

steps:
- name: Trigger
run: echo "Triggered by ${{github.event_name}} event"

- name: Check Branch Input
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
if [ -z "${{ github.event.inputs.branch }}" ]; then
echo "Branch input is required for manual trigger."
exit 1
else
echo "Checkout branch ${{ github.event.inputs.branch }}"
fi
else
# Extract branch name from github.ref
BRANCH_NAME="${{ github.ref }}"
BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/'
echo "Checkout branch $BRANCH_NAME"
fi

- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
uses: actions/[email protected]

- name: Add extension
run: |
cd $SDK_PATH
Expand Down
Loading