fixed indentation #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zephyr tests | |
permissions: | |
contents: read | |
on: [push, pull_request] | |
jobs: | |
zephyr_test: | |
runs-on: ubuntu-22.04 | |
container: ghcr.io/zephyrproject-rtos/ci:latest | |
env: | |
CMAKE_PREFIX_PATH: /opt/toolchains | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- zephyr-ref: v3.4.0 | |
- zephyr-ref: v3.5.0 | |
steps: | |
- name: Init Zephyr workspace | |
run: | | |
mkdir zephyr && cd zephyr | |
mkdir manifest && cd manifest | |
echo "manifest:" > west.yml | |
echo " remotes:" >> west.yml | |
echo " - name: zephyr" >> west.yml | |
echo " url-base: https://github.com/zephyrproject-rtos" >> west.yml | |
echo " - name: liboqs" >> west.yml | |
echo " url-base: https://github.com/${{ github.repository_owner }}" >> west.yml | |
echo " projects:" >> west.yml | |
echo " - name: zephyr" >> west.yml | |
echo " remote: zephyr" >> west.yml | |
echo " repo-path: zephyr" >> west.yml | |
echo " revision: ${{ matrix.config.zephyr-ref }}" >> west.yml | |
echo " import:" >> west.yml | |
echo " name-allowlist:" >> west.yml | |
echo " - picolibc" >> west.yml | |
echo " - name: liboqs" >> west.yml | |
echo " remote: liboqs" >> west.yml | |
echo " revision: $(echo '${{ github.ref }}' | sed -e 's/refs\/heads\///')" >> west.yml | |
echo " path: modules/crypto/liboqs" >> west.yml | |
west init -l --mf west.yml . | |
- name: Update west workspace | |
working-directory: zephyr | |
run: | | |
west update -n -o=--depth=1 | |
west zephyr-export | |
- name: Run Signature test | |
working-directory: zephyr | |
run: | | |
west twister --integration -T modules/crypto/liboqs/zephyr -s samples/Signatures/sample.crypto.liboqs_signature_example -vvv | |
- name: Run KEM test | |
working-directory: zephyr | |
run: | | |
west twister --integration -T modules/crypto/liboqs/zephyr -s samples/KEMs/sample.crypto.liboqs_kem_example -vvv |