Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koct9i committed Jan 1, 2025
1 parent 25545a5 commit c133d97
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 7 deletions.
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.

0 comments on commit c133d97

Please sign in to comment.