summaryrefslogtreecommitdiff
path: root/.github/workflows/continuous-integration-workflow.yml
blob: fc40389097ee648c0649d50a63d0d975055d5121 (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
name: CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        sample: [
          "arm-unknown-linux-gnueabi",
          "aarch64-unknown-linux-gnu",
          "mips-unknown-elf",
          "powerpc64-unknown-linux-gnu",
          "powerpc-unknown-linux-gnu",
          "x86_64-multilib-linux-uclibc"
        ]
    steps:
      - name: "clone"
        uses: actions/checkout@v2
      - name: "prereq"
        run: |
          sudo apt-get install -y gcc g++ gperf bison flex texinfo help2man \
                                  make libncurses5-dev python3-dev autoconf \
                                  automake libtool libtool-bin gawk wget bzip2 \
                                  xz-utils unzip patch libstdc++6 rsync
      - name: "build ct-ng"
        run: |
          ./bootstrap
          ./configure --enable-local
          make
      - name: "build ${{ matrix.sample }}"
        run: |
          mkdir -p src
          ./ct-ng ${{ matrix.sample }}
          sed -i -e '/CT_LOG_PROGRESS_BAR/s/y$/n/' .config
          sed -i -e '/CT_LOCAL_TARBALLS_DIR/s/HOME/CT_TOP_DIR/' .config
          sed -i -e '/CT_PREFIX_DIR/s/HOME/CT_TOP_DIR/' .config
          sed -i -e '/CT_LOG_EXTRA/d' .config
          sed -i -e '/CT_LOG_LEVEL_MAX/d' .config
          echo 'CT_LOG_ALL=y' >>.config
          echo 'CT_LOG_LEVEL_MAX="ALL"' >>.config
          ./ct-ng build