-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.cache | ||
./_build | ||
compile_commands.json | ||
* | ||
!src | ||
!scripts | ||
!tests | ||
!CMakeLists.txt | ||
!Makefile | ||
!.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
on: | ||
- push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
target: | ||
- alpine | ||
- gcc | ||
- clang | ||
- intel | ||
runs-on: nomadtools mem=500 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hadolint/[email protected] | ||
- run: DOCKER_BUILDKIT=1 docker build --pull --target ${{matrix.target}} . | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: nomadtools | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- run: DOCKER_BUILDKIT=1 docker build --target doxygen --output public . | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'public' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
ignored: | ||
- DL3006 | ||
- DL3008 | ||
- DL3013 | ||
- DL3018 | ||
- DL3006 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
FROM alpine:latest AS abase | ||
Check failure on line 1 in Dockerfile GitHub Actions / build (alpine)
Check failure on line 1 in Dockerfile GitHub Actions / build (gcc)
Check failure on line 1 in Dockerfile GitHub Actions / build (clang)
|
||
RUN apk add --no-cache py3-jinja2 cmake build-base ninja git doxygen graphviz | ||
|
||
FROM abase AS alpine | ||
WORKDIR /app | ||
COPY . . | ||
RUN make CONFARGS=-DCKD_NOSANITIZE=1 CC=gcc | ||
|
||
FROM abase AS make_doxygen | ||
WORKDIR /app | ||
COPY . . | ||
RUN make doxygen | ||
|
||
FROM scratch AS doxygen | ||
COPY --from=make_doxygen /app/public . | ||
Check failure on line 15 in Dockerfile GitHub Actions / build (alpine)
Check failure on line 15 in Dockerfile GitHub Actions / build (gcc)
Check failure on line 15 in Dockerfile GitHub Actions / build (clang)
|
||
|
||
############################################################################### | ||
|
||
FROM ubuntu AS base | ||
RUN printf "%s\n" 'APT::Install-Suggests "0";' 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-docker | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV PIP_BREAK_SYSTEM_PACKAGES=1 | ||
RUN set -x && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
cmake ninja-build make clang gcc python3-pip git time && \ | ||
pip3 --no-cache-dir install jinja2 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
FROM base AS clang | ||
WORKDIR /app | ||
COPY . . | ||
RUN make CC=clang | ||
|
||
FROM base AS gcc | ||
WORKDIR /app | ||
COPY . . | ||
RUN make CC=gcc | ||
|
||
FROM intel/oneapi AS intel | ||
RUN printf "%s\n" 'APT::Install-Suggests "0";' 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-docker | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV PIP_BREAK_SYSTEM_PACKAGES=1 | ||
RUN set -x && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
cmake ninja-build make python3-pip git time && \ | ||
pip3 --no-cache-dir install jinja2 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
WORKDIR /app | ||
COPY . . | ||
RUN make CC=icx-cc CONFARGS=-DCKD_NOSANITIZE=1 | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.