Skip to content

Commit

Permalink
[LOCAL] Add a GitLab-CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
neuschaefer committed Aug 15, 2023
1 parent 2ccdd1b commit 98f903a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build
on: [push]
jobs:
dt-binding-check:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y libyaml-dev
- run: pip3 --user install git+https://github.com/devicetree-org/dt-schema.git@main
- run: pwd; echo ~; ls -lh ~/.local/bin # DEBUG
- uses: actions/checkout@v2
- run: make ARCH=arm W=1 wpcm450_defconfig
- run: make ARCH=arm W=1 dt_binding_check -j$(nproc || echo 1)
build:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update
- run: sudo apt-get install -y gcc-arm-linux-gnueabi
- uses: actions/checkout@v2
- run: make ARCH=arm W=1 CROSS_COMPILE=arm-linux-gnueabi- wpcm450_defconfig
- run: make ARCH=arm W=1 CROSS_COMPILE=arm-linux-gnueabi- -j$(nproc || echo 1)
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
image: debian:11

.common:
before_script:
- apt-get update
- apt-get install -y git pkg-config python3-pip yamllint libyaml-dev build-essential gcc-arm-linux-gnueabi flex bison bc lzop libssl-dev swig
- pip3 install git+https://github.com/devicetree-org/dt-schema.git@main
- pwd; echo ~; ls -lh ~/.local/bin # DEBUG
script:
- make ARCH=arm W=1 CROSS_COMPILE=arm-linux-gnueabi- wpcm450_defconfig
- make ARCH=arm W=1 CROSS_COMPILE=arm-linux-gnueabi- ${TARGET} -j$(nproc || echo 1)

build:
extends: .common

binding-check:
extends: .common
variables:
TARGET: dt_binding_check

0 comments on commit 98f903a

Please sign in to comment.