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

Add CI #1

Merged
merged 1 commit into from
Mar 4, 2024
Merged
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
62 changes: 62 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: cheriot-audit CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
config:
- {
name: "Ubuntu Latest Release",
os: "ubuntu-latest",
build-type: Release,
dependencies: "sudo apt install ninja-build"
}
- {
name: "Ubuntu 20.04 Release",
os: "ubuntu-20.04",
build-type: Release,
dependencies: "sudo apt install ninja-build"
}
- {
name: "macOS Release",
os: "macos-latest",
build-type: Release,
dependencies: "brew update && brew install cmake ninja"
}
- {
name: "Ubuntu Latest Debug",
os: "ubuntu-latest",
build-type: Debug,
dependencies: "sudo apt install ninja-build"
}
- {
name: "Ubuntu 20.04 Debug",
os: "ubuntu-20.04",
build-type: Debug,
dependencies: "sudo apt install ninja-build"
}
- {
name: "macOS Debug",
os: "macos-latest",
build-type: Debug,
dependencies: "brew update && brew install cmake ninja"
}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.name }}
steps:
- uses: actions/checkout@v2
- name: Install ninja
run: ${{ matrix.config.dependencies }}
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.config.build-type}} -G Ninja
- name: Build
working-directory: ${{github.workspace}}/build
# Build your program with the given configuration
run: NINJA_STATUS="%p [%f:%s/%t] %o/s, %es" && ninja
Loading