From ba612f6a839c954de7e0001e89ee88a99d70c1ab Mon Sep 17 00:00:00 2001 From: Alexey Min Date: Thu, 4 Jan 2024 15:06:13 +0300 Subject: [PATCH] Test add CI --- .github/workflows/check-dtschema.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check-dtschema.yml diff --git a/.github/workflows/check-dtschema.yml b/.github/workflows/check-dtschema.yml new file mode 100644 index 00000000000000..05f05fff0d62e4 --- /dev/null +++ b/.github/workflows/check-dtschema.yml @@ -0,0 +1,29 @@ +name: Device tree validation +on: + pull_request: + types: [opened, synchronize, reopened] + tags: + - v*-sdm660 +jobs: + check-dbts: + runs-on: ubuntu-23.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Install dependencies + run: | + sudo apt install -yqq gcc build-essential device-tree-compiler gcc-aarch64-linux-gnu python3 python3-venv + - name: Prepare config + run: | + make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig sdm660_defconfig + - name: Compile DTBs + run: | + make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs + - name: Check DTBs + run: | + python3 -m venv venv_dtschema + ./venv_dtschema/bin/activate + pip3 install dtschema + make -C ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CHECK_DTBS=y qcom/sdm630-*.dtb qcom/sdm636-*.dtb qcom/sdm660-*.dtb