From 62eaaa9a3c0336a23d638d8b0240e594ce329bf3 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 8 Jun 2023 19:43:02 +0000 Subject: [PATCH] .github: add first LP64 compilation A ton of (valid!) warnings but this will make sure the code at least compiles. For more context see #7192 Signed-off-by: Marc Herbert --- .github/workflows/zephyr.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml index 4c2974bf6584..36555a138975 100644 --- a/.github/workflows/zephyr.yml +++ b/.github/workflows/zephyr.yml @@ -58,6 +58,39 @@ jobs: exit 1 fi + + # Temporary hacks to compile the very first LP64 configuration early + # before it becomes supported by the regular + # sof/scripts/xtensa-build-zephyr.py configuration script. Then this + # job will be disappear, folded back in the regular build-* jobs below. + LP64-WIP: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + with: + path: ./workspace/sof + + - name: west clones + run: pip3 install west && cd workspace/sof/ && west init -l && + west update --narrow --fetch-opt=--filter=tree:0 + + # Not strictly necessary but saves a lot of scrolling in the next step + # Caching a 12G image is unfortunately not possible: + # https://github.com/ScribeMD/docker-cache/issues/304 + # For faster builds we would have to pay for some persistent runners. + - name: Download docker image && ls /opt/toolchains/ + run: cd workspace && ./sof/zephyr/docker-run.sh ls -l /opt/toolchains/ + + - name: build with many warnings, work in progress + run: | + # One of the main problems: the old sof-logger is hardcoded to + # four 32bits parameters. + cd workspace && ./sof/zephyr/docker-run.sh /bin/sh -c \ + 'ln -s /opt/toolchains/zephyr-sdk-* ~/; + west build --board mimx93_evk_a55_sof sof/app' + + build-linux: runs-on: ubuntu-22.04 strategy: