-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
313 changed files
with
8,345 additions
and
3,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Spell Check Commits | ||
90a99e8dc09f01baa594ab37c41b5d7a34c9bb72 | ||
78516ad9dc5317577c0cf3fe09762c2a4f3908e7 | ||
|
||
# Coding Style Commits | ||
54231b9e43b751b2ccfb906a73510230364509be | ||
97268eee7680d962d2c6d532a19b4b6713771be7 | ||
302745184fd96ed8a587c4310316c5f41d2e9d79 | ||
e2f8736b4f08530a082fbf40db966a6d37b569d7 | ||
95c5c8c2d5a87269acd963aae7402e2b835580f1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Continuous Integration (CI) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
sming_repo: | ||
description: 'Full URL for Sming repository' | ||
default: 'https://github.com/SmingHub/Sming' | ||
type: string | ||
sming_branch: | ||
description: 'Sming branch to run against' | ||
default: 'develop' | ||
type: string | ||
alias: | ||
description: 'Library alias' | ||
default: '' | ||
type: string | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
variant: [esp8266, host, esp32, esp32s2, esp32c3, rp2040] | ||
include: | ||
- variant: esp8266 | ||
arch: Esp8266 | ||
- variant: host | ||
arch: Host | ||
- variant: esp32 | ||
arch: Esp32 | ||
- variant: esp32s2 | ||
arch: Esp32 | ||
- variant: esp32c3 | ||
arch: Esp32 | ||
- variant: rp2040 | ||
arch: Rp2040 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Fix autocrlf setting | ||
run: | | ||
git config --global --add core.autocrlf input | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create library alias | ||
if: ${{ inputs.alias }} | ||
shell: pwsh | ||
run: | | ||
New-Item -ItemType SymbolicLink -Path "../${{ inputs.alias }}" -Target (Resolve-Path ".").path | ||
- name: Checkout sming | ||
run: | | ||
git clone ${{ inputs.sming_repo }} -b ${{ inputs.sming_branch }} --depth 1 ../../sming | ||
- name: Configure environment | ||
shell: pwsh | ||
run: | | ||
"SMING_HOME=" + (Resolve-Path "../../sming/Sming").path >> $env:GITHUB_ENV | ||
"COMPONENT_SEARCH_DIRS=" + (Resolve-Path "..").path >> $env:GITHUB_ENV | ||
"CI_MAKEFILE=" + (Resolve-Path "../../sming/Tools/ci/library/Makefile") >> $env:GITHUB_ENV | ||
"SMING_ARCH=${{ matrix.arch }}" >> $env:GITHUB_ENV | ||
"SMING_SOC=${{ matrix.variant }}" >> $env:GITHUB_ENV | ||
- name: Install build tools for Ubuntu | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
. $SMING_HOME/../Tools/export.sh | ||
$SMING_HOME/../Tools/ci/install.sh $SMING_ARCH | ||
- name: Install build tools for Windows | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
. "$env:SMING_HOME/../Tools/ci/setenv.ps1" | ||
. "$env:SMING_HOME/../Tools/ci/install.cmd" | ||
- name: Build and Test for ${{matrix.arch}} on Ubuntu | ||
env: | ||
CLANG_FORMAT: clang-format-8 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
. $SMING_HOME/../Tools/export.sh | ||
make -j$(nproc) -f $CI_MAKEFILE | ||
- name: Build and Test for ${{matrix.arch}} on Windows | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
. "$env:SMING_HOME/../Tools/ci/setenv.ps1" | ||
make -j $env:NUMBER_OF_PROCESSORS -f $env:CI_MAKEFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: CI Dispatch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sming_repo: | ||
description: 'Full URL for Sming repository' | ||
default: 'https://github.com/SmingHub/Sming' | ||
sming_branch: | ||
description: 'Sming branch to run against' | ||
default: 'develop' | ||
|
||
jobs: | ||
build: | ||
uses: SmingHub/Sming/.github/workflows/library.yml@develop | ||
with: | ||
sming_repo: ${{ inputs.sming_repo }} | ||
sming_branch: ${{ inputs.sming_branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: CI Push | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
uses: SmingHub/Sming/.github/workflows/library.yml@develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ nbproject | |
GTAGS | ||
GRTAGS | ||
GPATH | ||
.DS_Store | ||
|
||
# Tag files created by build system | ||
.submodule | ||
|
Oops, something went wrong.