Skip to content

Commit

Permalink
DRAFT, DNM
Browse files Browse the repository at this point in the history
  • Loading branch information
jangalda-nsc committed Jul 2, 2024
1 parent 8d461ab commit 8b27828
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/build-using-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,37 @@ on:
pull_request:

jobs:
build-in-docker:
build-and-test-in-docker:
runs-on: ubuntu-22.04
container:
image: ghcr.io/nrfconnect/sdk-nrf-toolchain:pr-16290 # steps in this job are executed inside sdk-nrf-toolchain container
env:
ACCEPT_JLINK_LICENSE: 1 # set if you want to install JLink
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:pr-16290
defaults:
run:
shell: bash # It is required to set `bash` as default shell
# Bash shell is needed to set toolchain related environment variables in docker container
# It is a workaround for GitHub Actions limitation https://github.com/actions/runner/issues/1964
shell: bash
steps:
- name: Run command in NCS toolchain environment
run: "west --version" # This command is executed in bash shell `docker exec <container> bash -c west --version`)
# It will also install JLink if ACCEPT_JLINK_LICENSE is set to 1
- name: Checkout repository with example application
uses: actions/checkout@v4
with:
path: example-application

- name: Prepare west project
run: |
west init -l example-application
west update -o=--depth=1 -n
- name: Build firmware
working-directory: example-application
run: |
west twister -T app -v --inline-logs --integration
- name: Store hex files
uses: actions/upload-artifact@v4
with:
name: built-applications
path: example-application/twister-out/**/zephyr/zephyr.hex

- name: Twister Tests
working-directory: example-application
run: |
west twister -T tests -v --inline-logs --integration

0 comments on commit 8b27828

Please sign in to comment.