Skip to content
Draft
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
31 changes: 0 additions & 31 deletions .cirrus.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: "CI"
on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1" # At 00:00 on Monday

jobs:
cmake:
name: ${{ matrix.artifact_name }}
runs-on: ${{ matrix.image_name }}

strategy:
fail-fast: false
matrix:
include:
# region Linux Arm64
- artifact_name: linux-arm64-debug-nojit
image_name: ubuntu-24.04-arm
build_type: Debug
static_library: false
disable_jit: true

- artifact_name: linux-arm64-test-nojit
image_name: ubuntu-24.04-arm
build_type: RelWithDebInfo
static_library: false
disable_jit: true

- artifact_name: linux-arm64-release-nojit
image_name: ubuntu-24.04-arm
build_type: Release
static_library: false
disable_jit: true
# endregion

# region MacOS Arm64
- artifact_name: macos-arm64-debug-nojit
image_name: macos-14
build_type: Debug
static_library: true
disable_jit: true

- artifact_name: macos-arm64-test-nojit
image_name: macos-14
build_type: RelWithDebInfo
static_library: false
disable_jit: true

- artifact_name: macos-arm64-release-nojit
image_name: macos-14
build_type: Release
static_library: true
disable_jit: true
# endregion

steps:
- name: Check out repository
uses: actions/checkout@v7

- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y ninja-build clang libicu-dev

- name: Install macOS Dependencies
if: runner.os == 'macOS'
run: brew install ninja icu4c

- name: Create build directories
run: mkdir -p build

- name: CMake
working-directory: build
run: |
cmake -GNinja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
${{ case(matrix.static_library, '-DSTATIC_LIBRARY=ON', '') }} \
${{ case(matrix.disable_jit, '-DDISABLE_JIT=ON', '') }} \
${{ case(runner.os == 'macOS', '-DICU_INCLUDE_PATH=/opt/homebrew/opt/icu4c/include', '') }} \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
..

- name: Build
working-directory: build
run: ninja

- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.artifact_name }}
path: build/bin/
if-no-files-found: error

- name: Test
working-directory: build
run: ninja check
Loading