Add GitHub Actions #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
cmake: | |
# Skip building pull requests from the same repository | |
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/llvmparty/packages/ubuntu:22.04-llvm19.1.0 | |
steps: | |
- name: Install Dependencies | |
shell: bash | |
run: | | |
apt-get update | |
apt-get install -y cmake git ninja-build | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
shell: bash | |
run: | | |
cmake --preset clang | |
cmake --build --preset clang |