You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/02/19 16:32:59 UTC
(nuttx-apps) branch master updated: tools/ci: add initial support for MSYS2
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new faa8f6666 tools/ci: add initial support for MSYS2
faa8f6666 is described below
commit faa8f6666f619a0dbcda9a86ae6b5eb1744bbd5c
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Mon Feb 19 15:07:09 2024 +0100
tools/ci: add initial support for MSYS2
build.yml -> add msys2 job
---
.github/workflows/build.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
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