-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2516 from slaff/master
Release 4.6.0
- Loading branch information
Showing
376 changed files
with
8,064 additions
and
8,478 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,92 @@ | ||
name: Continuous Integration (CI) | ||
|
||
on: | ||
push: | ||
|
||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [Esp8266, Host, Esp32, Rp2040] | ||
variant: [""] | ||
os: [ubuntu-latest, windows-latest] | ||
include: | ||
- arch: Esp32 | ||
variant: esp32s2 | ||
os: ubuntu-latest | ||
- arch: Esp32 | ||
variant: esp32s2 | ||
os: windows-latest | ||
- arch: Esp32 | ||
variant: esp32c3 | ||
os: ubuntu-latest | ||
- arch: Esp32 | ||
variant: esp32c3 | ||
os: windows-latest | ||
exclude: | ||
- os: windows-latest | ||
arch: Host | ||
|
||
continue-on-error: ${{ matrix.arch == 'Host' && matrix.os == 'windows-latest' }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup SMING_HOME for Ubuntu | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
echo "CI_BUILD_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
echo "SMING_HOME=$GITHUB_WORKSPACE/Sming" >> $GITHUB_ENV | ||
- name: Setup SMING_HOME for Windows | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
echo ("CI_BUILD_DIR=" + $env:GITHUB_WORKSPACE) >> $env:GITHUB_ENV | ||
$env:SMING_HOME = Join-Path $env:GITHUB_WORKSPACE "Sming" | ||
echo ("SMING_HOME=" + $env:SMING_HOME) >> $env:GITHUB_ENV | ||
- name: Install Sming Framework on Ubuntu | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
env: | ||
SMING_ARCH: ${{matrix.arch}} | ||
SMING_SOC: ${{matrix.variant}} | ||
run: | | ||
./Tools/install.sh $(echo "$SMING_ARCH" | tr '[:upper:]' '[:lower:]') | ||
- name: Install Sming Framework on Windows | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
env: | ||
SMING_ARCH: ${{matrix.arch}} | ||
SMING_SOC: ${{matrix.variant}} | ||
run: | | ||
Tools/ci/setenv.ps1 | ||
Tools/install.cmd "$env:SMING_ARCH".ToLower() | ||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Build and Test for ${{matrix.arch}} on Ubuntu | ||
env: | ||
SMING_ARCH: ${{matrix.arch}} | ||
SMING_SOC: ${{matrix.variant}} | ||
CLANG_FORMAT: clang-format-8 | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
source $SMING_HOME/../Tools/export.sh | ||
$CLANG_FORMAT --version | ||
./Tools/ci/build.sh | ||
- name: Build and Test for ${{matrix.arch}} on Windows | ||
env: | ||
SMING_ARCH: ${{matrix.arch}} | ||
SMING_SOC: ${{matrix.variant}} | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
$env:PYTHON_PATH=$(python -c "import sys, os.path; print(os.path.dirname(sys.executable))") | ||
Tools/ci/setenv.ps1 | ||
Tools/ci/build.cmd | ||
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,73 @@ | ||
name: Coverity Scan | ||
|
||
on: | ||
# Push to master MUST be evaluated | ||
# Pushing to develop only on condition | ||
push: | ||
branches: [ master, develop ] | ||
# Pull requests to master MUST be evaluated | ||
pull_request: | ||
branches: [ master ] | ||
# Run the workflow once a month | ||
schedule: | ||
- cron: '30 1 1 * *' | ||
|
||
jobs: | ||
scan: | ||
# concurrency: | ||
# group: ${{ github.head_ref || github.run_id }} | ||
# cancel-in-progress: true | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Check if we are allowed to scan | ||
env: | ||
BRANCH: ${{github.ref_name}} | ||
run: | | ||
CHECK_SCA=0 | ||
if [[ "$BRANCH" == "master" ]]; then | ||
CHECK_SCA=1; | ||
elif [[ $BRANCH == "develop" ]]; then | ||
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then | ||
CHECK_SCA=1; | ||
elif [[ "$GITHUB_EVENT_NAME" == "push" ]]; then | ||
COMMIT_MSG=$(git log --format=%B -n 1) | ||
if [[ "$COMMIT_MSG" == *"[scan:coverity]"* ]]; then | ||
CHECK_SCA=1; | ||
fi | ||
fi | ||
fi | ||
echo "CHECK_SCA=$CHECK_SCA" >> $GITHUB_ENV | ||
- name: Setup SMING_HOME for Ubuntu | ||
if: ${{ env.CHECK_SCA == 1 }} | ||
run: | | ||
echo "CI_BUILD_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
echo "SMING_HOME=$GITHUB_WORKSPACE/Sming" >> $GITHUB_ENV | ||
echo "SMING_ARCH=Host" >> $GITHUB_ENV | ||
- name: Install Sming Framework on Ubuntu | ||
if: ${{ env.CHECK_SCA == 1 }} | ||
run: | | ||
./Tools/install.sh $(echo "$SMING_ARCH" | tr '[:upper:]' '[:lower:]') | ||
- name: Install Ninja | ||
if: ${{ env.CHECK_SCA == 1 }} | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Run Coverity Scan | ||
if: ${{ env.CHECK_SCA == 1 }} | ||
env: | ||
COVERITY_SCAN_TOKEN: ${{secrets.COVERITY_SCAN_TOKEN}} | ||
run: | | ||
source $SMING_HOME/../Tools/export.sh | ||
export MAKE_PARALLEL="make -j$(nproc)" | ||
export COVERITY_SCAN_BUILD_COMMAND_PREPEND="cd $SMING_HOME" | ||
cat > /tmp/secrets.sh | ||
$SMING_HOME/Arch/Host/Tools/ci/coverity-scan.sh | ||
- name: Archive scan log | ||
if: ${{ env.CHECK_SCA == 1 }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverity-scan-report | ||
path: Sming/cov-int/scm_log.txt |
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,42 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
|
||
# TODO: check if the tag is pointing to the tip of the master branch | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: trstringer/manual-approval@v1 | ||
if: ${{ github.ref_type == 'tag' }} | ||
with: | ||
secret: ${{ github.TOKEN }} | ||
approvers: slaff | ||
- name: Install xmlstarlet | ||
if: ${{ github.ref_type == 'tag' }} | ||
run: sudo apt-get install -y xmlstarlet | ||
- name: Build docs | ||
if: ${{ github.ref_type == 'tag' }} | ||
run: | | ||
Tools/install.sh doc | ||
make -C docs html | ||
zip -r sming-docs.zip docs/build/html | ||
- name: Release New Version | ||
if: ${{ github.ref_type == 'tag' }} | ||
env: | ||
SMING_ARCH: Host | ||
RELEASE_TOKEN: ${{secrets.RELEASE_TOKEN}} | ||
CI_REPO_NAME: ${{github.repository}} | ||
CHOCO_TOKEN: ${{secrets.CHOKO_TOKEN}} | ||
run: | | ||
export CI_BUILD_DIR="$GITHUB_WORKSPACE" | ||
export SMING_HOME="$GITHUB_WORKSPACE/Sming" | ||
make -C $SMING_HOME submodules | ||
cat > /tmp/secrets.sh | ||
Tools/ci/deploy.sh ${{github.ref_name}} |
7 changes: 3 additions & 4 deletions
7
.github/workflows/pull-request.yml → .github/workflows/spelling-check.yml
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
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
Oops, something went wrong.