From 348e062c31683a682d5ca3ea7f9cdd3857e81388 Mon Sep 17 00:00:00 2001 From: Konstantin Khlebnikov Date: Wed, 1 Jan 2025 17:19:15 +0100 Subject: [PATCH] githib workflow --- .github/workflows/ci.yaml | 56 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 7 ----- 2 files changed, 56 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1bcf159 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,56 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + build: + # https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job + - os: ubuntu-latest + + - os: ubuntu-latest + image: ubuntu:20.04 + - os: ubuntu-latest + image: ubuntu:22.04 + - os: ubuntu-latest + image: ubuntu:24.04 + + - os: ubuntu-latest + image: fedora:40 + - os: ubuntu-latest + image: fedora:41 + - os: ubuntu-latest + image: fedora:42 + + - os: ubuntu-latest + image: debian:11 + - os: ubuntu-latest + image: debian:12 + + - os: macos-13 + - os: macos-14 + - os: macos-15 + + runs-on: ${{ matrix.build.os }} + + container: ${{ matrix.build.image }} + + steps: + # https://github.com/actions/checkout + - name: Checkout repo + uses: actions/checkout@v4 + + - name: dependencies + run: apt-get install -y build-essential + + - name: build + run: make + + - name: test + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab8c643..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -os: - - linux - - osx - -script: - - make - - make test