Skip to content

Commit

Permalink
ci: Only download required repositories
Browse files Browse the repository at this point in the history
This should speed up CI a bit.
  • Loading branch information
sjanc committed Oct 31, 2024
1 parent 84429c4 commit 13f2c6b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ repository.apache-mynewt-core:
vers: 0.0.0
user: apache
repo: mynewt-core

project.repositories.ignored:
- stm-*
- atmel-samd21xx
39 changes: 39 additions & 0 deletions .github/project_newt_test_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

project.name: "my_project"

project.repositories:
- apache-mynewt-core

# Use github's distribution mechanism for core ASF libraries.
# This provides mirroring automatically for us.
#
repository.apache-mynewt-core:
type: github
vers: 0.0.0
user: apache
repo: mynewt-core

project.repositories.allowed:
- apache-mynewt-core
- apache-mynewt-nimble
- apache-mynewt-mcumgr
- mcuboot
- mbedtls
2 changes: 1 addition & 1 deletion .github/workflows/newt_test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
shell: bash
run: |
newt new build
cp -f .github/project.yml build/project.yml
cp -f .github/project_newt_test_all.yml build/project.yml
cd build
newt upgrade --shallow=1
rm -rf repos/apache-mynewt-nimble
Expand Down

0 comments on commit 13f2c6b

Please sign in to comment.