Skip to content

Commit 79f86a7

Browse files
Merge branch 'develop'
2 parents f22b92e + c3684ab commit 79f86a7

File tree

313 files changed

+8345
-3014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+8345
-3014
lines changed

.git-blame-ignore-revs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Spell Check Commits
2+
90a99e8dc09f01baa594ab37c41b5d7a34c9bb72
3+
78516ad9dc5317577c0cf3fe09762c2a4f3908e7
4+
5+
# Coding Style Commits
6+
54231b9e43b751b2ccfb906a73510230364509be
7+
97268eee7680d962d2c6d532a19b4b6713771be7
8+
302745184fd96ed8a587c4310316c5f41d2e9d79
9+
e2f8736b4f08530a082fbf40db966a6d37b569d7
10+
95c5c8c2d5a87269acd963aae7402e2b835580f1

.github/workflows/ci.yml

Lines changed: 44 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -11,82 +11,66 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
arch: [Esp8266, Host, Esp32, Rp2040]
15-
variant: [""]
16-
os: [ubuntu-latest, windows-latest]
14+
os: [ubuntu-20.04, windows-latest]
15+
variant: [esp8266, host, esp32, esp32s2, esp32c3, rp2040]
1716
include:
18-
- arch: Esp32
19-
variant: esp32s2
20-
os: ubuntu-latest
21-
- arch: Esp32
22-
variant: esp32s2
23-
os: windows-latest
24-
- arch: Esp32
25-
variant: esp32c3
26-
os: ubuntu-latest
27-
- arch: Esp32
28-
variant: esp32c3
29-
os: windows-latest
30-
exclude:
31-
- os: windows-latest
32-
arch: Host
33-
34-
continue-on-error: ${{ matrix.arch == 'Host' && matrix.os == 'windows-latest' }}
35-
17+
- variant: esp8266
18+
arch: Esp8266
19+
- variant: host
20+
arch: Host
21+
- variant: esp32
22+
arch: Esp32
23+
- variant: esp32s2
24+
arch: Esp32
25+
- variant: esp32c3
26+
arch: Esp32
27+
- variant: rp2040
28+
arch: Rp2040
29+
3630
concurrency:
3731
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }}
3832
cancel-in-progress: true
39-
33+
4034
runs-on: ${{ matrix.os }}
4135

4236
steps:
37+
- name: Fix autocrlf setting
38+
run: |
39+
git config --global --add core.autocrlf input
40+
4341
- name: Checkout code
44-
uses: actions/checkout@v2
45-
- name: Setup SMING_HOME for Ubuntu
46-
if: ${{ matrix.os == 'ubuntu-latest' }}
42+
uses: actions/checkout@v3
43+
44+
- name: Configure environment
45+
shell: pwsh
4746
run: |
48-
echo "CI_BUILD_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
49-
echo "SMING_HOME=$GITHUB_WORKSPACE/Sming" >> $GITHUB_ENV
50-
- name: Setup SMING_HOME for Windows
51-
if: ${{ matrix.os == 'windows-latest' }}
47+
"CI_BUILD_DIR=" + (Resolve-Path ".").path >> $env:GITHUB_ENV
48+
"SMING_HOME=" + (Resolve-Path "Sming").path >> $env:GITHUB_ENV
49+
"SMING_ARCH=${{ matrix.arch }}" >> $env:GITHUB_ENV
50+
"SMING_SOC=${{ matrix.variant }}" >> $env:GITHUB_ENV
51+
52+
- name: Install build tools for Ubuntu
53+
if: ${{ matrix.os == 'ubuntu-20.04' }}
5254
run: |
53-
echo ("CI_BUILD_DIR=" + $env:GITHUB_WORKSPACE) >> $env:GITHUB_ENV
54-
$env:SMING_HOME = Join-Path $env:GITHUB_WORKSPACE "Sming"
55-
echo ("SMING_HOME=" + $env:SMING_HOME) >> $env:GITHUB_ENV
56-
- name: Install Sming Framework on Ubuntu
57-
if: ${{ matrix.os == 'ubuntu-latest' }}
58-
env:
59-
SMING_ARCH: ${{matrix.arch}}
60-
SMING_SOC: ${{matrix.variant}}
61-
run: |
62-
./Tools/install.sh $(echo "$SMING_ARCH" | tr '[:upper:]' '[:lower:]')
63-
- name: Install Sming Framework on Windows
55+
Tools/ci/install.sh
56+
57+
- name: Install build tools for Windows
6458
if: ${{ matrix.os == 'windows-latest' }}
65-
env:
66-
SMING_ARCH: ${{matrix.arch}}
67-
SMING_SOC: ${{matrix.variant}}
6859
run: |
69-
Tools/ci/setenv.ps1
70-
Tools/install.cmd "$env:SMING_ARCH".ToLower()
71-
- name: Install Ninja
72-
uses: seanmiddleditch/gha-setup-ninja@master
73-
- name: Build and Test for ${{matrix.arch}} on Ubuntu
60+
. Tools/ci/setenv.ps1
61+
Tools/ci/install.cmd
62+
63+
- name: Build and test for ${{matrix.arch}} on Ubuntu
7464
env:
75-
SMING_ARCH: ${{matrix.arch}}
76-
SMING_SOC: ${{matrix.variant}}
7765
CLANG_FORMAT: clang-format-8
78-
if: ${{ matrix.os == 'ubuntu-latest' }}
66+
if: ${{ matrix.os == 'ubuntu-20.04' }}
7967
run: |
8068
source $SMING_HOME/../Tools/export.sh
8169
$CLANG_FORMAT --version
82-
./Tools/ci/build.sh
83-
- name: Build and Test for ${{matrix.arch}} on Windows
84-
env:
85-
SMING_ARCH: ${{matrix.arch}}
86-
SMING_SOC: ${{matrix.variant}}
87-
if: ${{ matrix.os == 'windows-latest' }}
70+
Tools/ci/build.sh
71+
72+
- name: Build and test for ${{matrix.arch}} on Windows
73+
if: ${{ matrix.os == 'windows-latest' }}
8874
run: |
89-
$env:PYTHON_PATH=$(python -c "import sys, os.path; print(os.path.dirname(sys.executable))")
90-
Tools/ci/setenv.ps1
75+
. Tools/ci/setenv.ps1
9176
Tools/ci/build.cmd
92-

.github/workflows/coverity-scan.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
# concurrency:
1818
# group: ${{ github.head_ref || github.run_id }}
1919
# cancel-in-progress: true
20-
21-
runs-on: ubuntu-latest
20+
21+
runs-on: ubuntu-20.04
2222

2323
steps:
2424
- name: Checkout code
@@ -40,31 +40,32 @@ jobs:
4040
fi
4141
fi
4242
fi
43-
43+
4444
echo "CHECK_SCA=$CHECK_SCA" >> $GITHUB_ENV
45+
4546
- name: Setup SMING_HOME for Ubuntu
4647
if: ${{ env.CHECK_SCA == 1 }}
4748
run: |
4849
echo "CI_BUILD_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
4950
echo "SMING_HOME=$GITHUB_WORKSPACE/Sming" >> $GITHUB_ENV
5051
echo "SMING_ARCH=Host" >> $GITHUB_ENV
52+
5153
- name: Install Sming Framework on Ubuntu
5254
if: ${{ env.CHECK_SCA == 1 }}
5355
run: |
54-
./Tools/install.sh $(echo "$SMING_ARCH" | tr '[:upper:]' '[:lower:]')
55-
- name: Install Ninja
56-
if: ${{ env.CHECK_SCA == 1 }}
57-
uses: seanmiddleditch/gha-setup-ninja@master
56+
Tools/ci/install.sh
57+
5858
- name: Run Coverity Scan
5959
if: ${{ env.CHECK_SCA == 1 }}
60-
env:
60+
env:
6161
COVERITY_SCAN_TOKEN: ${{secrets.COVERITY_SCAN_TOKEN}}
6262
run: |
6363
source $SMING_HOME/../Tools/export.sh
6464
export MAKE_PARALLEL="make -j$(nproc)"
6565
export COVERITY_SCAN_BUILD_COMMAND_PREPEND="cd $SMING_HOME"
6666
cat > /tmp/secrets.sh
6767
$SMING_HOME/Arch/Host/Tools/ci/coverity-scan.sh
68+
6869
- name: Archive scan log
6970
if: ${{ env.CHECK_SCA == 1 }}
7071
uses: actions/upload-artifact@v3

.github/workflows/library.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Continuous Integration (CI)
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
sming_repo:
7+
description: 'Full URL for Sming repository'
8+
default: 'https://github.com/SmingHub/Sming'
9+
type: string
10+
sming_branch:
11+
description: 'Sming branch to run against'
12+
default: 'develop'
13+
type: string
14+
alias:
15+
description: 'Library alias'
16+
default: ''
17+
type: string
18+
19+
jobs:
20+
build:
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: [ubuntu-latest, windows-latest]
25+
variant: [esp8266, host, esp32, esp32s2, esp32c3, rp2040]
26+
include:
27+
- variant: esp8266
28+
arch: Esp8266
29+
- variant: host
30+
arch: Host
31+
- variant: esp32
32+
arch: Esp32
33+
- variant: esp32s2
34+
arch: Esp32
35+
- variant: esp32c3
36+
arch: Esp32
37+
- variant: rp2040
38+
arch: Rp2040
39+
40+
concurrency:
41+
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }}
42+
cancel-in-progress: true
43+
44+
runs-on: ${{ matrix.os }}
45+
46+
steps:
47+
- name: Fix autocrlf setting
48+
run: |
49+
git config --global --add core.autocrlf input
50+
51+
- name: Checkout code
52+
uses: actions/checkout@v3
53+
54+
- name: Create library alias
55+
if: ${{ inputs.alias }}
56+
shell: pwsh
57+
run: |
58+
New-Item -ItemType SymbolicLink -Path "../${{ inputs.alias }}" -Target (Resolve-Path ".").path
59+
60+
- name: Checkout sming
61+
run: |
62+
git clone ${{ inputs.sming_repo }} -b ${{ inputs.sming_branch }} --depth 1 ../../sming
63+
64+
- name: Configure environment
65+
shell: pwsh
66+
run: |
67+
"SMING_HOME=" + (Resolve-Path "../../sming/Sming").path >> $env:GITHUB_ENV
68+
"COMPONENT_SEARCH_DIRS=" + (Resolve-Path "..").path >> $env:GITHUB_ENV
69+
"CI_MAKEFILE=" + (Resolve-Path "../../sming/Tools/ci/library/Makefile") >> $env:GITHUB_ENV
70+
"SMING_ARCH=${{ matrix.arch }}" >> $env:GITHUB_ENV
71+
"SMING_SOC=${{ matrix.variant }}" >> $env:GITHUB_ENV
72+
73+
- name: Install build tools for Ubuntu
74+
if: ${{ matrix.os == 'ubuntu-latest' }}
75+
run: |
76+
. $SMING_HOME/../Tools/export.sh
77+
$SMING_HOME/../Tools/ci/install.sh $SMING_ARCH
78+
79+
- name: Install build tools for Windows
80+
if: ${{ matrix.os == 'windows-latest' }}
81+
run: |
82+
. "$env:SMING_HOME/../Tools/ci/setenv.ps1"
83+
. "$env:SMING_HOME/../Tools/ci/install.cmd"
84+
85+
- name: Build and Test for ${{matrix.arch}} on Ubuntu
86+
env:
87+
CLANG_FORMAT: clang-format-8
88+
if: ${{ matrix.os == 'ubuntu-latest' }}
89+
run: |
90+
. $SMING_HOME/../Tools/export.sh
91+
make -j$(nproc) -f $CI_MAKEFILE
92+
93+
- name: Build and Test for ${{matrix.arch}} on Windows
94+
if: ${{ matrix.os == 'windows-latest' }}
95+
run: |
96+
. "$env:SMING_HOME/../Tools/ci/setenv.ps1"
97+
make -j $env:NUMBER_OF_PROCESSORS -f $env:CI_MAKEFILE
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI Dispatch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
sming_repo:
7+
description: 'Full URL for Sming repository'
8+
default: 'https://github.com/SmingHub/Sming'
9+
sming_branch:
10+
description: 'Sming branch to run against'
11+
default: 'develop'
12+
13+
jobs:
14+
build:
15+
uses: SmingHub/Sming/.github/workflows/library.yml@develop
16+
with:
17+
sming_repo: ${{ inputs.sming_repo }}
18+
sming_branch: ${{ inputs.sming_branch }}

.github/workflows/library/ci-push.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: CI Push
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
uses: SmingHub/Sming/.github/workflows/library.yml@develop

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
SMING_ARCH: Host
3434
RELEASE_TOKEN: ${{secrets.RELEASE_TOKEN}}
3535
CI_REPO_NAME: ${{github.repository}}
36-
CHOCO_TOKEN: ${{secrets.CHOKO_TOKEN}}
36+
CHOCO_TOKEN: ${{secrets.CHOCO_TOKEN}}
3737
run: |
3838
export CI_BUILD_DIR="$GITHUB_WORKSPACE"
3939
export SMING_HOME="$GITHUB_WORKSPACE/Sming"

.github/workflows/spelling-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Check spelling
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
submodules: false
1616
- name: Get submodules

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ nbproject
2727
GTAGS
2828
GRTAGS
2929
GPATH
30+
.DS_Store
3031

3132
# Tag files created by build system
3233
.submodule

0 commit comments

Comments
 (0)