Skip to content

Commit 8a44fc9

Browse files
authored
1 parent 4198808 commit 8a44fc9

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
14+
name: ci-container
15+
runs:
16+
using: 'docker'
17+
image: 'docker.pkg.github.com/apache/incubator-nuttx-testing/nuttx-ci-linux'
18+
args:
19+
- "-c"
20+
- ${{ inputs.run }}

.github/workflows/main.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
name: PR Check CI
14+
15+
on:
16+
pull_request:
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-18.04
21+
env:
22+
DOCKER_BUILDKIT: 1
23+
24+
strategy:
25+
matrix:
26+
boards: [arm-01, arm-02, arm-03, arm-04, arm-05, arm-06, arm-07, arm-08, arm-09, arm-10, arm-11, arm-12, arm-13, arm-14, arm-15, mips-riscv-x86-xtensa, sim]
27+
steps:
28+
- name: Checkout nuttx repo
29+
uses: actions/checkout@v2
30+
with:
31+
repository: apache/incubator-nuttx
32+
path: nuttx
33+
fetch-depth: 0
34+
35+
- name: Fetch nuttx tags
36+
run: |
37+
cd nuttx
38+
git fetch --tags
39+
40+
- name: Checkout apps repo
41+
uses: actions/checkout@v2
42+
with:
43+
repository: apache/incubator-nuttx-apps
44+
path: apps
45+
fetch-depth: 0
46+
47+
- name: Checkout testing repo
48+
uses: actions/checkout@v2
49+
with:
50+
repository: apache/incubator-nuttx-testing
51+
path: testing
52+
53+
- name: Docker Login
54+
uses: azure/docker-login@v1
55+
with:
56+
login-server: docker.pkg.github.com
57+
username: ${GITHUB_ACTOR}
58+
password: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Run Pull Container
61+
uses: ./testing/.github/actions/ci-container
62+
63+
- name: Run builds
64+
uses: ./testing/.github/actions/ci-container
65+
env:
66+
BLOBDIR: /tools/blobs
67+
with:
68+
run: |
69+
cd testing
70+
./cibuild.sh -x testlist/${{matrix.boards}}.dat

0 commit comments

Comments
 (0)