mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-18 04:08:57 +08:00
CI: Migrate ci tooling from testing repository to main os repo
This commit is contained in:
parent
f9e487ae1d
commit
ddbef2b5a9
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -28,7 +28,6 @@ jobs:
|
|||||||
id: gittargets
|
id: gittargets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
TESTING_REF="master" # Always use master for testing
|
|
||||||
OS_REF=""
|
OS_REF=""
|
||||||
APPS_REF=""
|
APPS_REF=""
|
||||||
|
|
||||||
@ -76,7 +75,6 @@ jobs:
|
|||||||
|
|
||||||
echo ::set-output name=os_ref::$OS_REF
|
echo ::set-output name=os_ref::$OS_REF
|
||||||
echo ::set-output name=apps_ref::$APPS_REF
|
echo ::set-output name=apps_ref::$APPS_REF
|
||||||
echo ::set-output name=testing_ref::$TESTING_REF
|
|
||||||
|
|
||||||
- name: Checkout nuttx repo
|
- name: Checkout nuttx repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -96,14 +94,6 @@ jobs:
|
|||||||
path: sources/apps
|
path: sources/apps
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Checkout testing repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: apache/incubator-nuttx-testing
|
|
||||||
ref: ${{ steps.gittargets.outputs.testing_ref }}
|
|
||||||
path: sources/testing
|
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
- name: Tar sources
|
- name: Tar sources
|
||||||
run: tar zcf sources.tar.gz sources
|
run: tar zcf sources.tar.gz sources
|
||||||
- name: Archive Source Bundle
|
- name: Archive Source Bundle
|
||||||
@ -138,11 +128,11 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Pull
|
- name: Docker Pull
|
||||||
run: docker pull docker.pkg.github.com/apache/incubator-nuttx-testing/nuttx-ci-linux
|
run: docker pull docker.pkg.github.com/apache/incubator-nuttx/apache-nuttx-ci-linux
|
||||||
- name: Export NuttX Repo SHA
|
- name: Export NuttX Repo SHA
|
||||||
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
||||||
- name: Run builds
|
- name: Run builds
|
||||||
uses: ./sources/testing/.github/actions/ci-container
|
uses: ./sources/nuttx/.github/actions/ci-container
|
||||||
env:
|
env:
|
||||||
BLOBDIR: /tools/blobs
|
BLOBDIR: /tools/blobs
|
||||||
with:
|
with:
|
||||||
@ -150,8 +140,8 @@ jobs:
|
|||||||
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
||||||
export CCACHE_DIR=`pwd`/ccache
|
export CCACHE_DIR=`pwd`/ccache
|
||||||
mkdir $CCACHE_DIR
|
mkdir $CCACHE_DIR
|
||||||
cd sources/testing
|
export ARTIFACTDIR=`pwd`/buildartifacts
|
||||||
export ARTIFACTDIR=`pwd`/../../buildartifacts
|
cd sources/nuttx/tools/ci
|
||||||
./cibuild.sh -A -c testlist/${{matrix.boards}}.dat
|
./cibuild.sh -A -c testlist/${{matrix.boards}}.dat
|
||||||
ccache -s
|
ccache -s
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
@ -181,7 +171,7 @@ jobs:
|
|||||||
cache-name: ${{ runner.os }}-cache-tools
|
cache-name: ${{ runner.os }}-cache-tools
|
||||||
with:
|
with:
|
||||||
path: prebuilt
|
path: prebuilt
|
||||||
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/testing/cibuild.sh') }}
|
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/cibuild.sh') }}
|
||||||
|
|
||||||
- name: Export NuttX Repo SHA
|
- name: Export NuttX Repo SHA
|
||||||
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
||||||
@ -190,8 +180,8 @@ jobs:
|
|||||||
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
echo "::add-matcher::sources/nuttx/.github/gcc.json"
|
||||||
export CCACHE_DIR=`pwd`/ccache
|
export CCACHE_DIR=`pwd`/ccache
|
||||||
mkdir $CCACHE_DIR
|
mkdir $CCACHE_DIR
|
||||||
cd sources/testing
|
export ARTIFACTDIR=`pwd`/buildartifacts
|
||||||
export ARTIFACTDIR=`pwd`/../../buildartifacts
|
cd sources/nuttx/tools/ci
|
||||||
./cibuild.sh -i -A -c testlist/${{matrix.boards}}.dat
|
./cibuild.sh -i -A -c testlist/${{matrix.boards}}.dat
|
||||||
ccache -s
|
ccache -s
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user