Skip to content

Add several more CI actions in GitHub #249

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

Merged
merged 3 commits into from
Jun 13, 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
21 changes: 0 additions & 21 deletions .cirrus.yml

This file was deleted.

80 changes: 65 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,80 @@
name: CI
on:
push:
branches: [master]
branches: ["*"]
tags: ["*"]
pull_request:
workflow_dispatch:

jobs:
test:
name: ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
linux:
name: Linux ${{ matrix.arch }} / ${{ matrix.cc }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
compiler:
- gcc
- clang
exclude:
- os: macos-latest
compiler: gcc
arch: [x86_64, arm64]
cc: [gcc, clang]
include:
- arch: x86_64
runner: ubuntu-latest
- arch: arm64
runner: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v4
- run: ${{ matrix.compiler }} --version

- name: Install compilers
run: sudo apt-get update && sudo apt-get install -y gcc clang

- name: Compiler version
run: ${{ matrix.cc }} --version

- name: Build
run: ./tools/ci-build.sh CC=${{ matrix.compiler }}
run: ./tools/ci-build.sh CC=${{ matrix.cc }} --cores=2

- name: Test
run: make check

macos:
name: macOS ${{ matrix.variant }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- variant: arm64
runner: macos-latest # Arm64
- variant: x86_64
runner: macos-13 # x86-64
steps:
- uses: actions/checkout@v4
- run: ./tools/ci-build.sh --cores=2
- run: make check

freebsd:
name: "FreeBSD ${{ matrix.version }} / ${{ matrix.arch }} / ${{ matrix.cc }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['13.3', '14.2', '15.0']
arch: ['x86_64', 'aarch64']
cc: ['clang', 'gcc']
steps:
- uses: actions/checkout@v4

- name: Build & Test inside FreeBSD
uses: vmactions/[email protected]
with:
release: ${{ matrix.version }}
arch: ${{ matrix.arch }}
mem: 6144
cpu: 2
usesh: true
sync: rsync
prepare: |
pkg install -y gcc gmake
run: |
${{ matrix.cc }} --version
./tools/ci-build.sh CC=${{ matrix.cc }} --cores=2
make check
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Modern concurrency primitives and building blocks for high performance applicati

### Continuous Integration

| GitHub Actions | Cirrus |
| -------- | ------- |
| [![Build Status](https://github.com/concurrencykit/ck/workflows/CI/badge.svg)](https://github.com/concurrencykit/ck/actions?query=workflow%3ACI+branch%3Amaster) | [![Build Status](https://api.cirrus-ci.com/github/concurrencykit/ck.svg?branch=master)](https://cirrus-ci.com/github/concurrencykit/ck) |
[![Build Status](https://github.com/concurrencykit/ck/workflows/CI/badge.svg)](https://github.com/concurrencykit/ck/actions?query=workflow%3ACI+branch%3Amaster)

Compilers tested in the past include gcc, clang, cygwin, icc, mingw32, mingw64
and suncc across all supported architectures. All new architectures are
Expand Down Expand Up @@ -50,7 +48,7 @@ Concurrency Kit has specialized assembly for the following architectures:
* `sparcv9+`
* `x86`
* `x86_64`

### Features

#### Concurrency Primitives
Expand Down