diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f287ac92..35162ef0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -214,3 +214,71 @@ jobs: name: macos-builds path: buildartifacts/ continue-on-error: true + + msys2: + needs: Fetch-Source + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + boards: [msys2] + + defaults: + run: + shell: msys2 {0} + steps: + - uses: actions/checkout@v4 + - uses: msys2/setup-msys2@v2 + with: + msystem: MSYS + update: false + install: >- + base-devel + gcc + gperf + automake + autoconf + git + python3 + ncurses-devel + unzip + zip + tio + zlib-devel + cmake + ninja + python-pip + vim + + - name: pip3 install + run: | + pip3 install --root-user-action=ignore --no-cache-dir pyelftools cxxfilt kconfiglib + + - run: git config --global core.autocrlf false + + - name: Download Source Artifact + uses: actions/download-artifact@v3 + with: + name: source-bundle + path: . + + - name: Extract sources + run: tar zxf sources.tar.gz + + - name: Export NuttX Repo SHA + run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV + + - name: Run Builds + run: | + echo "::add-matcher::sources/nuttx/.github/gcc.json" + export ARTIFACTDIR=`pwd`/buildartifacts + git config --global --add safe.directory /github/workspace/sources/nuttx + git config --global --add safe.directory /github/workspace/sources/apps + cd sources/nuttx/tools/ci + ./cibuild.sh -g -i -A -C -R testlist/${{matrix.boards}}.dat + + - uses: actions/upload-artifact@v3 + with: + name: msys2-builds + path: buildartifacts/ + continue-on-error: true