From 5c94c0c9c793c322857be23337cd6b487ebd96a3 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Sat, 28 Oct 2023 05:14:46 +0300 Subject: [PATCH] Add simple CI Add very simple CI setup to check that debugcc builds correctly. Signed-off-by: Dmitry Baryshkov --- .github/workflows/ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..709e878 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: BSD-3-Clause +# +# Copyright (c) 2023 Linaro Ltd. +# +name: "Builds" +on: + pull_request: + push: + schedule: + # Run periodically to check that it still compiles + - cron: '13 13 * * 1' + workflow_dispatch: + +jobs: + job: + name: Build + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + container: + - debian:testing + - debian:bookworm + #- debian:bullseye + #- debian:buster + - ubuntu:lunar + - ubuntu:jammy + #- ubuntu:focal + #- ubuntu:bionic + #- ubuntu:xenial + + container: + image: ${{ matrix.container }} + + steps: + - name: Git checkout + uses: actions/checkout@v3 + + - name: Install meson + run: | + apt update + apt -y install --no-install-recommends meson build-essential + + - name: Build + run: | + meson setup . build --werror + ninja -C build + ninja -C build install