Skip to content

Commit 48cf43f

Browse files
committed
test
1 parent 7fbdc93 commit 48cf43f

File tree

5 files changed

+95
-149
lines changed

5 files changed

+95
-149
lines changed

.github/workflows/01-CI-Checking.yaml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/02-TruffleHog-Security-Scan.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/03-CLA-Assistant.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/build_fw.yaml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Check-Build-Firmware
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, edited]
6+
7+
env:
8+
SL_SLC_PATH: ${{ github.workspace }}/tools/slc_cli/slc
9+
CI_REPO_DIR: ${{ github.workspace }}/application_examples_ci
10+
SL_STUDIO_BUILD_PATH: ${{ github.workspace }}/tools/SimplicityStudio_v5
11+
STUDIO_ADAPTER_PACK_PATH: ${{ github.workspace }}/tools/SimplicityStudio_v5/developer/adapter_packs
12+
POST_BUILD_EXE: ${{ github.workspace }}/tools/SimplicityStudio_v5/developer/adapter_packs/commander/commander
13+
WORKSPACE: ${{ github.workspace }}
14+
15+
jobs:
16+
build_firmware:
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- name: Get repository name
20+
run: |
21+
REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d "/" -f 2)
22+
echo "repo=$REPO_NAME" >> $GITHUB_ENV
23+
- name: Create GitHub App Token
24+
id: app-token
25+
uses: actions/create-github-app-token@v1
26+
with:
27+
app-id: ${{ vars.GH_APP_ID }}
28+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
29+
owner: ${{ github.repository_owner }}
30+
- name: Checkout code repository
31+
uses: actions/checkout@v4
32+
with:
33+
repository: ${{ github.repository }}
34+
token: ${{ steps.app-token.outputs.token }}
35+
path: 'projects'
36+
- name: Checkout tools repository
37+
uses: actions/checkout@v4
38+
with:
39+
repository: SiliconLabsSoftware/aep_ci_tools
40+
ref: 'hop_dev'
41+
token: ${{ steps.app-token.outputs.token }}
42+
path: 'aep_ci_tools'
43+
- name: Check the changes
44+
id: pr_check
45+
run: |
46+
cd projects
47+
bash ${{ github.workspace }}/aep_ci_tools/scripts/check_pr_changes.sh \
48+
${{ github.base_ref }} ${{ github.event.pull_request.number }} \
49+
${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }}
50+
echo "...........Changes files:..........."
51+
cat git_diff.txt
52+
if [ ! -s changed_projects_folder.txt ]; then
53+
echo "has_changes=false" >> $GITHUB_OUTPUT
54+
echo "No project changes detected...........Skipped"
55+
exit 0
56+
fi
57+
echo "has_changes=true" >> $GITHUB_OUTPUT
58+
echo "...........Changed projects:..........."
59+
cat changed_projects_folder.txt
60+
- name: Setup Java
61+
if: ${{ steps.pr_check.outputs.has_changes == 'true' }}
62+
uses: actions/setup-java@v4
63+
with:
64+
distribution: 'oracle'
65+
java-version: '21'
66+
- name: Install Dependencies
67+
if: ${{ steps.pr_check.outputs.has_changes == 'true' }}
68+
run: bash ${{ github.workspace }}/aep_ci_tools/scripts/install_tools.sh
69+
- name: Run build the projects
70+
if: ${{ steps.pr_check.outputs.has_changes == 'true' }}
71+
run : |
72+
mkdir changed_projects
73+
while read line; do cp -r ./projects/$line --parents ./changed_projects; \
74+
done < ${{ github.workspace}}/projects/changed_projects_folder.txt
75+
python3 -u ${{ github.workspace}}/aep_ci_tools/scripts/checkproject.py --junit \
76+
--html --release --slcpgcc ${{ github.workspace}}/changed_projects
77+
- name: Upload Result
78+
id: html_report
79+
if: ${{ steps.pr_check.outputs.has_changes == 'true' }}
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: build_test_project
83+
path: build_test_project.html
84+
retention-days: 90
85+
- name: Check log file to set status of the job
86+
if: ${{ steps.pr_check.outputs.has_changes == 'true' }}
87+
run: |
88+
echo "Check report here: ${{ steps.html_report.outputs.artifact-url }}"
89+
if grep -qe "Fail" build_test_project.html; then
90+
echo "Result: Failure"
91+
exit 1
92+
else
93+
echo "Result: Success"
94+
fi

platform_trng/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This project uses the True Random Number Generator (TRNG) peripheral of the EFM3
1717
- TRNG
1818
- USART
1919

20-
> It is highly recommended to use the [software libraries](https://docs.silabs.com/mbed-tls/latest/group-rng-module) provided by Silicon Labs to access the TRNG module. This example should serve as a reference for users that choose to write their own low-level drivers.
20+
> It is highly recommended to use the [software libraries](https://docs.silabs.com/mbed-tls/latest/group-rng-module) provided by Silicon Labs to access the TRNG module. This example should serve as a reference for users that choose to write their own low-level drivers....
2121
2222
## Gecko SDK version ##
2323

0 commit comments

Comments
 (0)