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 2, 2024
1 parent 9474ff4 commit db4ad5c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
FROM ghcr.io/llvmparty/packages/ubuntu:22.04-llvm19.1.0

RUN apt update && apt install -y \
git \
clangd \
clang-format \
cmake \
ninja-build \
gdb \
ninja-build \
python3 \
python3-pip \
python3-venv \
sudo \
&& rm -rf /var/lib/apt/lists/*
FROM ghcr.io/llvmparty/packages/ubuntu:22.04-llvm19.1.0

RUN apt update && apt install -y --no-install-recommends \
gdb \
&& rm -rf /var/lib/apt/lists/*
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: Checkout
uses: actions/checkout@v4

- name: Build
shell: bash
run: |
cmake --preset clang
cmake --build build

0 comments on commit db4ad5c

Please sign in to comment.