summaryrefslogtreecommitdiffstats
path: root/.github/workflows/meta-ptx.yml
blob: 1ac8396982a1489a76269cb3470b49f2de23c992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: meta-ptx CI

on:
  # Trigger the workflow on push or pull request,
  # but only for the master branch
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  build:
    name: meta-ptx Build
    runs-on: ubuntu-20.04
    timeout-minutes: 720
    steps:
      - name: Install required packages
        run: |
          sudo apt-get install diffstat
      - name: Checkout
        uses: actions/checkout@v2
        with:
          path: meta-ptx
      - name: Clone poky
        run: git clone -b master git://git.yoctoproject.org/poky
      - name: Clone meta-openembedded
        run: git clone -b master https://github.com/openembedded/meta-openembedded.git
      - name: Initialize build directory
        run: |
          source poky/oe-init-build-env build
          bitbake-layers add-layer ../meta-ptx
          echo 'INHERIT += "rm_work"' >> conf/local.conf
          echo 'DISTRO_FEATURES:remove = "alsa bluetooth usbgadget usbhost wifi nfs zeroconf pci 3g nfc x11 opengl ptest wayland vulkan"' >> conf/local.conf
          echo 'SSTATE_MIRRORS = "file://.* http://195.201.147.117/sstate-cache/PATH"' >> conf/local.conf
      - name: Build barebox
        run: |
          source poky/oe-init-build-env build
          echo 'BAREBOX_CONFIG = "efi_defconfig"' >> conf/local.conf
          bitbake barebox
      - name: Build genimage, genimage-native
        run: |
          source poky/oe-init-build-env build
          bitbake genimage genimage-native
      - name: Build dt-utils
        run: |
          source poky/oe-init-build-env build
          bitbake dt-utils
      - name: Build microcom
        run: |
          source poky/oe-init-build-env build
          bitbake microcom
      - name: Build platsch
        run: |
          source poky/oe-init-build-env build
          bitbake platsch