Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github workflow #55

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
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

- os: ubuntu-latest
image: ubuntu:24.04
target: x86_64-w64-mingw32

runs-on: ${{ matrix.build.os }}

container: ${{ matrix.build.image }}

steps:
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@v4

- name: Dependencies (ubuntu, debian)
if: ${{ startsWith(matrix.build.image, 'ubuntu') || startsWith(matrix.build.image, 'debian') }}
run: |
apt-get update
apt-get install -y build-essential

- name: Dependencies (fedora)
if: ${{ startsWith(matrix.build.image, 'fedora') }}
run: |
dnf group install -y development-tools c-development

- name: Build (mingw)
if: ${{ contains(matrix.build.target, 'mingw') }}
run: |
apt-get update
apt-get install -y mingw-w64
make mingw

- name: Build
run: make

- name: Test
run: make test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

Loading