Skip to content

Commit

Permalink
Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Oct 1, 2024
1 parent 9474ff4 commit 68b983d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 build

0 comments on commit 68b983d

Please sign in to comment.