Skip to content

Provide workaround for 'dangling pointer' error/warning #391

Provide workaround for 'dangling pointer' error/warning

Provide workaround for 'dangling pointer' error/warning #391

Workflow file for this run

name: Continuous Integration (CI)
on:
push:
pull_request:
branches: [ develop ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest]
variant: [esp8266, host, rp2040]
include:
- variant: esp8266
arch: Esp8266
- variant: host
arch: Host
- variant: rp2040
arch: Rp2040
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
env:
SMING_ARCH: ${{ matrix.arch }}
SMING_SOC: ${{ matrix.variant }}
steps:
- name: Fix autocrlf setting
run: |
git config --global --add core.autocrlf input
- name: Checkout code
uses: actions/checkout@v3
- name: Configure environment
shell: pwsh
run: |
"CI_BUILD_DIR=" + (Resolve-Path ".").path >> $env:GITHUB_ENV
"SMING_HOME=" + (Resolve-Path "Sming").path >> $env:GITHUB_ENV
- name: Install build tools for Ubuntu
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
Tools/ci/install.sh
- name: Install build tools for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
. Tools/ci/setenv.ps1
Tools/ci/install.cmd
- name: Build and test for ${{matrix.variant}} on Ubuntu
env:
CLANG_FORMAT: clang-format-8
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: |
source $SMING_HOME/../Tools/export.sh
$CLANG_FORMAT --version
Tools/ci/build.sh
- name: Build and test for ${{matrix.variant}} on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
. Tools/ci/setenv.ps1
Tools/ci/build.cmd