File tree 3 files changed +49
-12
lines changed
3 files changed +49
-12
lines changed Original file line number Diff line number Diff line change 18
18
- uses : actions/checkout@v2
19
19
with :
20
20
fetch-depth : 0
21
+ - uses : actions/setup-go@v3
22
+ with :
23
+ go-version : ' stable'
21
24
- name : Print the environment
22
25
run : |
23
26
uname -a
Original file line number Diff line number Diff line change @@ -30,22 +30,19 @@ install_newt() {
30
30
popd
31
31
}
32
32
33
- shallow_clone_mynewt () {
34
- mkdir -p repos/apache-mynewt-core
35
- git clone --depth=1 https://github.com/apache/mynewt-core repos/apache-mynewt-core
33
+ install_mynewt () {
34
+ build= " $PWD /build "
35
+ newt new " $build "
36
36
[[ $? -ne 0 ]] && exit 1
37
37
38
- # nrfx is now taken from original repository
39
- git clone --depth=1 --branch v3.3.0 https://github.com/NordicSemiconductor/nrfx.git repos/nordic-nrfx
40
- [[ $? -ne 0 ]] && exit 1
38
+ cp -f ci/mynewt_project.yml " $build " /project.yml
41
39
42
- # Mbed-TLS is now taken from original repository
43
- git clone --depth=1 --branch v2.28.4 https://github.com/Mbed-TLS/mbedtls.git repos/mbedtls
40
+ pushd " $build "
41
+ newt upgrade --shallow=1
44
42
[[ $? -ne 0 ]] && exit 1
45
43
46
- # CMSIS is now taken from original repository
47
- git clone --depth=1 --branch 5.4.0 https://github.com/ARM-software/CMSIS_5.git repos/arm-CMSIS_5
48
- [[ $? -ne 0 ]] && exit 1
44
+ popd
45
+ mv " $build " /repos .
49
46
}
50
47
51
48
arm_toolchain_install () {
@@ -78,6 +75,6 @@ mkdir -p $HOME/bin
78
75
export PATH=$HOME /bin:$PATH
79
76
80
77
install_newt
81
- shallow_clone_mynewt
78
+ install_mynewt
82
79
arm_toolchain_install
83
80
native_test_setup
Original file line number Diff line number Diff line change
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing,
13
+ # software distributed under the License is distributed on an
14
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ # KIND, either express or implied. See the License for the
16
+ # specific language governing permissions and limitations
17
+ # under the License.
18
+ #
19
+
20
+ project.name : " my_project"
21
+
22
+ # Use github's distribution mechanism for core ASF libraries.
23
+ # This provides mirroring automatically for us.
24
+ #
25
+ repository.apache-mynewt-core :
26
+ type : github
27
+ vers : 0.0.0
28
+ user : apache
29
+ repo : mynewt-core
30
+
31
+ project.repositories.allowed :
32
+ - apache-mynewt-core
33
+ - apache-mynewt-nimble
34
+ - apache-mynewt-mcumgr
35
+ - mbedtls
36
+ - nordic-nrfx
37
+ - arm-CMSIS_5
You can’t perform that action at this time.
0 commit comments