aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: e8b7fdd65e7bcbbeb1535529f7acaf217cdc505f (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
name: Build
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
    types: [opened, synchronize, reopened]
  release:
    types: [created]
  schedule:
    - cron: "0 13 * * 1"

jobs:
  test:
    name: ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: true
      matrix:
        os: ["ubuntu-latest"]
        include:
          - compiler: "gcc"
            os: "ubuntu-latest"

    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Install Ubuntu Prerequisites
        run: |
          sudo apt-get update
          sudo apt-get install coreutils make autoconf automake build-essential libelf-dev gettext flex bison
          sudo apt-get install ${{ matrix.compiler }}
      - name: Build ALL
        run: |
          make DEFCONFIG=y