mirror of
https://github.com/embedd-actions/nrf-connect-sdk-ci.git
synced 2025-12-15 04:03:40 +03:00
Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4927c9eba | ||
|
|
4ceb7cf6a2 | ||
|
|
7e26793205 | ||
|
|
5e4f33e305 | ||
|
|
5132e45f05 | ||
|
|
47b2f2fbda | ||
|
|
9ac1a47691 | ||
|
|
3bd84c35fa | ||
|
|
84208cf690 | ||
|
|
a133f06ff9 | ||
|
|
3cdd4a8cd8 | ||
|
|
8a22869a17 | ||
|
|
43d4f89775 | ||
|
|
a9451d4e8b | ||
|
|
7eb31b0d9b | ||
|
|
f6a4aafd8b | ||
|
|
f9c3cdbc17 | ||
|
|
07965d4d81 | ||
|
|
9f3c2b7414 | ||
|
|
6b1d9625c7 | ||
|
|
a621c08ba5 | ||
|
|
9118dee0a1 | ||
|
|
b57318f8f3 | ||
|
|
ffdeac30b9 | ||
|
|
63b20c1f92 | ||
|
|
1084bcbcc0 | ||
|
|
4901ffebc0 | ||
|
|
5854e4b6fb | ||
|
|
43acc600fd | ||
|
|
ad1b043176 | ||
|
|
bbb35ed2dd | ||
|
|
b779cf68ae | ||
|
|
16e4ae70f1 | ||
|
|
2d40d50b16 | ||
|
|
c40048b453 | ||
|
|
c5bdb3308d | ||
|
|
7c152a38d7 | ||
|
|
0d8252a960 | ||
|
|
17e980292f | ||
|
|
dfd46ef7b0 | ||
|
|
331a2556ab | ||
|
|
9fbf20c733 | ||
|
|
9594280926 | ||
|
|
a49b727fea | ||
|
|
8609fb7d5b | ||
|
|
71b5e385f3 | ||
|
|
3f8a44d7b8 |
20
.github/workflows/image_publishing.yml
vendored
20
.github/workflows/image_publishing.yml
vendored
@@ -13,6 +13,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Free disk space
|
||||||
|
run: |
|
||||||
|
echo "Initial disk usage:"
|
||||||
|
df -h
|
||||||
|
|
||||||
|
sudo rm -rf /usr/share/dotnet
|
||||||
|
sudo rm -rf /usr/local/lib/android
|
||||||
|
sudo rm -rf /opt/ghc
|
||||||
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
|
|
||||||
|
echo "After cleanup:"
|
||||||
|
df -h
|
||||||
|
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
@@ -40,3 +53,10 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
no-cache: true
|
||||||
|
|
||||||
|
- name: Cleanup Docker
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
docker system prune -af || true
|
||||||
|
df -h
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
#ARG ARCH=amd64
|
#ARG ARCH=amd64
|
||||||
ARG NRF_CONNECT_TAG=v2.5.0
|
ARG NRF_CONNECT_TAG=v3.0.2
|
||||||
# Should be for selected NRF_CONNECT_TAG
|
# Should be for selected NRF_CONNECT_TAG
|
||||||
ARG ZEPHYR_NEEDED_TAG=0.16.1
|
ARG ZEPHYR_NEEDED_TAG=0.17.0
|
||||||
# For new versions - xz
|
# For new versions - xz
|
||||||
ARG ZEPHYR_ARCHIVE_EXTENSION=xz
|
ARG ZEPHYR_ARCHIVE_EXTENSION=xz
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ RUN ARCH="$(dpkg --print-architecture)" && \
|
|||||||
-y && \
|
-y && \
|
||||||
# Remove apt cache
|
# Remove apt cache
|
||||||
rm -rf /var/cache/apt && \
|
rm -rf /var/cache/apt && \
|
||||||
pip3 install --upgrade pip --break-system-packages && \
|
# pip3 install --upgrade pip --break-system-packages && \
|
||||||
# Create work directory
|
# Create work directory
|
||||||
mkdir /workdir && \
|
mkdir /workdir && \
|
||||||
# Get GN tools for matter
|
# Get GN tools for matter
|
||||||
|
|||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 Sergey Ladanov
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
28
README.md
28
README.md
@@ -3,20 +3,20 @@ Build NRF Connect SDK projects
|
|||||||
|
|
||||||
## Usage example:
|
## Usage example:
|
||||||
|
|
||||||
```
|
```yml
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: embedd-actions/nrf-connect-sdk-ci@v2.5.0
|
uses: embedd-actions/nrf-connect-sdk-ci@v3.0.2
|
||||||
with:
|
with:
|
||||||
board: nrf52833dk_nrf52833
|
board: <DK Board Name>
|
||||||
build_dir: build
|
build_dir: build
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -25,9 +25,17 @@ jobs:
|
|||||||
|
|
||||||
To select the specific version of NRF Connect SDK you
|
To select the specific version of NRF Connect SDK you
|
||||||
can reference a specific version of GitHub action:
|
can reference a specific version of GitHub action:
|
||||||
```
|
```yml
|
||||||
uses: embedd-actions/nrf-connect-sdk-ci@v2.3.0
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.3.0
|
||||||
uses: embedd-actions/nrf-connect-sdk-ci@v2.4.0
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.4.0
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.6.1
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.7.0
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.8.0
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.9.0
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v2.9.1
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v3.0.0
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v3.0.1
|
||||||
|
uses: embedd-actions/nrf-connect-sdk-ci@v3.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
## List of available tags
|
## List of available tags
|
||||||
@@ -38,4 +46,14 @@ v2.4.0
|
|||||||
v2.4.1
|
v2.4.1
|
||||||
v2.4.2
|
v2.4.2
|
||||||
v2.5.0
|
v2.5.0
|
||||||
|
v2.5.1
|
||||||
|
v2.6.1
|
||||||
|
v2.7.0
|
||||||
|
v2.8.0
|
||||||
|
v2.8.0
|
||||||
|
v2.9.0
|
||||||
|
v2.9.1
|
||||||
|
v3.0.0
|
||||||
|
v3.0.1
|
||||||
|
v3.0.2
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -11,9 +11,13 @@ inputs:
|
|||||||
description: 'Building directory'
|
description: 'Building directory'
|
||||||
required: true
|
required: true
|
||||||
default: 'build'
|
default: 'build'
|
||||||
|
add_flags:
|
||||||
|
description: 'Additional flags'
|
||||||
|
required: true
|
||||||
|
default: '--no-sysbuild'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'docker://sergeyladanov/nrf-connect-sdk:v2.5.0'
|
image: 'docker://sergeyladanov/nrf-connect-sdk:v3.0.2'
|
||||||
args:
|
args:
|
||||||
- west
|
- west
|
||||||
- build
|
- build
|
||||||
@@ -21,7 +25,7 @@ runs:
|
|||||||
- ${{ inputs.build_dir }}
|
- ${{ inputs.build_dir }}
|
||||||
- .
|
- .
|
||||||
- --pristine
|
- --pristine
|
||||||
- --no-sysbuild
|
|
||||||
- --board
|
- --board
|
||||||
- ${{ inputs.board }}
|
- ${{ inputs.board }}
|
||||||
|
- ${{ inputs.add_flags }}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
- NRF_CONNECT_TAG=v2.3.0
|
- NRF_CONNECT_TAG=v3.0.2
|
||||||
- ZEPHYR_NEEDED_TAG=0.15.2
|
- ZEPHYR_NEEDED_TAG=0.17.0
|
||||||
- ZEPHYR_ARCHIVE_EXTENSION=gz
|
- ZEPHYR_ARCHIVE_EXTENSION=gz
|
||||||
|
|||||||
@@ -4,4 +4,5 @@
|
|||||||
/bin/bash /workdir/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -t arm-zephyr-eabi
|
/bin/bash /workdir/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -t arm-zephyr-eabi
|
||||||
/bin/bash /workdir/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -c
|
/bin/bash /workdir/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -c
|
||||||
|
|
||||||
exec $@
|
# exec $@
|
||||||
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user