name: Build uoscore-uedhoc on: push jobs: # This workflow contains 2 jobs build and test build: name: Build uoscore-uedhoc runs-on: ubuntu-latest steps: - name: Install Zephyr tools run: | sudo apt update sudo apt upgrade wget https://apt.kitware.com/kitware-archive.sh sudo bash kitware-archive.sh sudo apt install --no-install-recommends git cmake ninja-build gperf ccache dfu-util device-tree-compiler wget python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file make gcc gcc-multilib g++-multilib libsdl2-dev pip3 install --user -U west echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc source ~/.bashrc west init ~/zephyrproject cd ~/zephyrproject west update west zephyr-export pip3 install --user -r ~/zephyrproject/zephyr/scripts/requirements.txt cd ~ wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.13.1/zephyr-sdk-0.13.1-linux-x86_64-setup.run chmod +x zephyr-sdk-0.13.1-linux-x86_64-setup.run ./zephyr-sdk-0.13.1-linux-x86_64-setup.run -- -d ~/zephyr-sdk-0.13.1 - name: Checkout code uses: actions/checkout@v2 with: submodules: recursive ### build, test and archive # native_posix (0x68) - name: Build native_posix run: | source ~/zephyrproject/zephyr/zephyr-env.sh cd test/ west build -b=native_posix west build -t run - name: Archive static lib uses: actions/upload-artifact@v2 with: name: uoscore-uedhoc-x86 path: test/build/uoscore_uedhoc/libuoscore-uedhoc.a # native_posix_64 - name: Build native_posix_64 run: | source ~/zephyrproject/zephyr/zephyr-env.sh cd test/ rm -rf build rm -rf build_lib_test west build -b=native_posix_64 west build -t run - name: Archive static lib uses: actions/upload-artifact@v2 with: name: uoscore-uedhoc-x86-64 path: test/build/uoscore_uedhoc/libuoscore-uedhoc.a