1name: iut_zephyr_build
2
3on:
4  pull_request:
5    branches: [ main ]
6  schedule:
7    - cron: '0 20 * * 2,6'
8
9jobs:
10  iut_zephyr_build:
11    runs-on: ubuntu-22.04
12    container:
13      image: ghcr.io/zephyrproject-rtos/ci:v0.26.4
14    env:
15      ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.1
16
17    steps:
18      - name: Apply container owner mismatch workaround
19        run: |
20          # FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
21          #        match the container user UID because of the way GitHub
22          #        Actions runner is implemented. Remove this workaround when
23          #        GitHub comes up with a fundamental fix for this problem.
24          git config --global --add safe.directory ${GITHUB_WORKSPACE}
25
26      - name: Checkout Zephyr
27        run:
28          west init
29
30      - name: Checkout Intel HAL
31        uses: actions/checkout@v3
32        with:
33          path: modules/hal/intel
34
35      - name: Build IUT Test for ISH 5.4.1
36        run:
37          west build -b intel_ish_5_4_1 modules/hal/intel/zephyr/iut_test -d iut_build_5_4_1
38
39      - name: Build IUT Test for ISH 5.6.0
40        run:
41          west build -b intel_ish_5_6_0 modules/hal/intel/zephyr/iut_test -d iut_build_5_6_0
42
43      - name: Build IUT Test for ISH 5.8.0
44        run:
45          west build -b intel_ish_5_8_0 modules/hal/intel/zephyr/iut_test -d iut_build_5_8_0
46