Merge pull request #49 from oyama/fix/multicore-safe-execute #8
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: Run unittests | |
on: [push] | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clean workspace | |
run: | | |
echo "Cleaning up previous run" | |
rm -rf "${{ github.workspace }}" | |
mkdir -p "${{ github.workspace }}" | |
- name: Install build GNU Arm Embedded Toolchain | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install gcc-arm-none-eabi | |
- name: Checkout pico-sdk/master | |
uses: actions/checkout@v4 | |
with: | |
repository: raspberrypi/pico-sdk | |
ref: master | |
path: pico-sdk | |
- name: Checkout pico-sdk submodules | |
working-directory: ${{github.workspace}}/pico-sdk | |
run: git submodule update --init | |
- name: Checkout pico-vfs | |
uses: actions/checkout@v4 | |
with: | |
path: pico-vfs | |
- name: Checkout pico-vfs submodules | |
working-directory: ${{github.workspace}}/pico-vfs | |
run: git submodule update --init --recursive | |
- name: Create Build Environment | |
working-directory: ${{github.workspace}}/pico-vfs | |
run: cmake -E make_directory ${{github.workspace}}/pico-vfs/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/pico-vfs/build | |
run: PICO_SDK_PATH=../../pico-sdk cmake .. -DPICO_PLATFORM=host -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
working-directory: ${{github.workspace}}/pico-vfs/build | |
shell: bash | |
run: cmake --build . --target host --config $BUILD_TYPE | |
- name: Test | |
working-directory: ${{github.workspace}}/pico-vfs/build | |
shell: bash | |
run: ./tests/host/host |