From b5472baab1a421c61096b162c042f6431a1c3c22 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 30 Apr 2024 23:26:33 +0200 Subject: [PATCH] CI: build and test --- .github/dependabot.yml | 6 +++ .github/workflows/build.yaml | 99 ++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..759819d4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..d77a70f9 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,99 @@ +name: CI + +on: + push: + pull_request: + +env: + VERBOSE: 1 + +jobs: + build-test-debian-trixie: + name: Test on Debian trixie + runs-on: ubuntu-latest + container: + image: ghcr.io/pwmt/github-actions-debian:trixie + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Build and test + run: | + mkdir build + cd build + meson .. + ninja --verbose + ninja test --verbose + + build-test-debian-bookworm: + name: Test on Debian bookworm + runs-on: ubuntu-latest + container: + image: ghcr.io/pwmt/github-actions-debian:bookworm + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Build and test + run: | + mkdir build + cd build + meson .. + ninja --verbose + ninja test --verbose + + build-test-ubuntu-noble: + name: Test on Ubuntu noble + runs-on: ubuntu-latest + container: + image: ghcr.io/pwmt/github-actions-ubuntu:noble + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Build and test + run: | + mkdir build + cd build + meson .. + ninja --verbose + ninja test --verbose + + build-test-ubuntu-jammy: + name: Test on Ubuntu jammy + runs-on: ubuntu-latest + container: + image: ghcr.io/pwmt/github-actions-ubuntu:jammy + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Build and test + run: | + mkdir build + cd build + meson .. + ninja --verbose + ninja test --verbose + + build-test-archlinux: + name: Test on Archlinux + runs-on: ubuntu-latest + container: + image: ghcr.io/pwmt/github-actions-archlinux:latest + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Build and test + run: | + mkdir build + cd build + meson .. + ninja --verbose + ninja test --verbose