Compare commits

...

7 Commits

Author SHA1 Message Date
Brock Allen
2fae1da76f ops: refactor github -> gitea
Some checks failed
ci / docker-build (pull_request) Successful in 24m56s
ci / build-and-test (pull_request) Failing after 8m11s
2024-01-27 23:30:44 +00:00
Brock Allen
bf1882e528 ops: Remove g++-multilib
Some checks failed
ci / docker-build (pull_request) Successful in 24m24s
ci / build-and-test (pull_request) Failing after 1m5s
g++-multilib is not availble on arm64 images and causes CI/CD to fail.
2024-01-27 23:02:42 +00:00
Brock Allen
94c1ad26d5 fix: typos
Some checks failed
ci / docker-build (pull_request) Failing after 3m35s
ci / build-and-test (pull_request) Has been skipped
2024-01-27 23:00:25 +00:00
Brock Allen
8712d22ff5 ops(dockerfile): Build rust and clang wrappers from source
Some checks failed
ci / docker-build (pull_request) Failing after 58s
ci / build-and-test (pull_request) Has been skipped
2024-01-27 22:57:32 +00:00
Brock Allen
2df45c01ff ops: Remove amd64 platform limitation
Some checks failed
ci / docker-build (pull_request) Failing after 5m42s
ci / build-and-test (pull_request) Has been skipped
2024-01-27 22:47:35 +00:00
Brock Allen
105c1be3df ops: Add logging to CI
Some checks failed
ci / docker-build (pull_request) Failing after 16m46s
ci / build-and-test (pull_request) Has been skipped
2024-01-27 22:31:04 +00:00
Brock Allen
716962af71 ops: Add gitea actions CI 2024-01-27 22:24:38 +00:00
4 changed files with 23 additions and 29 deletions

View File

@@ -7,8 +7,7 @@
}, },
"workspaceMount": "", "workspaceMount": "",
"runArgs": [ "runArgs": [
"--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z", "--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z"
"--platform=linux/amd64"
], ],
"customizations": { "customizations": {
"vscode": { "vscode": {

View File

@@ -59,9 +59,8 @@ jobs:
run: | run: |
docker run \ docker run \
--rm \ --rm \
--platform linux/amd64 \
--workdir /builder/mnt \ --workdir /builder/mnt \
-v ${{ github.workspace }}:/builder/mnt \ -v ${{ gitea.workspace }}:/builder/mnt \
cproject-builder:latest \ cproject-builder:latest \
/bin/bash -c "rm -rf build; cmake -B build; cmake --build build" /bin/bash -c "rm -rf build; cmake -B build; cmake --build build"
- -
@@ -69,25 +68,24 @@ jobs:
run: | run: |
docker run \ docker run \
--rm \ --rm \
--platform linux/amd64 \
--workdir /builder/mnt/tests/unittest \ --workdir /builder/mnt/tests/unittest \
-v ${{ github.workspace }}:/builder/mnt \ -v ${{ gitea.workspace }}:/builder/mnt \
cproject-builder:latest \ cproject-builder:latest \
/bin/bash -c "ceedling clobber; ceedling gcov:all; ceedling utils:gcov" /bin/bash -c "ceedling clobber; ceedling gcov:all; ceedling utils:gcov"
- -
name: Archive coverage results name: Archive coverage results
shell: bash shell: bash
run: | run: |
staging="reports-${{github.run_number}}" staging="reports-${{gitea.run_number}}"
mkdir -p "$staging" mkdir -p "$staging"
cp -r tests/unittest/build/artifacts/gcov "$staging" cp -r tests/unittest/build/artifacts/gcov "$staging"
tar czf "$staging.tar.gz" "$staging" tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV echo "ASSET=$staging.tar.gz" >> $GITEA_ENV
- -
name: Archive artifacts name: Archive artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: reports-${{github.run_number}} name: reports-${{gitea.run_number}}
path: ${{ env.ASSET }} path: ${{ env.ASSET }}
retention-days: 3 retention-days: 3

View File

@@ -2,7 +2,7 @@ ARG base_tag=bullseye
ARG base_img=mcr.microsoft.com/vscode/devcontainers/base:dev-${base_tag} ARG base_img=mcr.microsoft.com/vscode/devcontainers/base:dev-${base_tag}
# ARG base_img=debian:${base_tag} # ARG base_img=debian:${base_tag}
FROM --platform=linux/amd64 ${base_img} AS builder-install FROM ${base_img} AS builder-install
# the following shows how to install the latest version of a package. # the following shows how to install the latest version of a package.
# you can determine the installed version with `apt-cache policy <list of packages>` and fix # you can determine the installed version with `apt-cache policy <list of packages>` and fix
@@ -15,7 +15,6 @@ RUN apt-get install -y --no-install-recommends \
cmake \ cmake \
build-essential \ build-essential \
gcc \ gcc \
g++-multilib \
locales \ locales \
make \ make \
ruby \ ruby \
@@ -61,29 +60,28 @@ RUN ln -s /usr/bin/clang-tidy-${llvm_version} /usr/local/bin/clang-tidy
# this can take a significant amount of time (e.g., several minutes just to compile one tool), # this can take a significant amount of time (e.g., several minutes just to compile one tool),
# and also increases the image size significantly. therefore, we go for option B below. # and also increases the image size significantly. therefore, we go for option B below.
# RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
# ENV PATH=/root/.cargo/bin:$PATH ENV PATH=/root/.cargo/bin:$PATH
# Each takes around 280 s to build on an M2 macbook air # Each takes around 280 s to build on an M2 macbook air
# RUN cargo install run-clang-format RUN cargo install run-clang-format
# RUN cargo install run-clang-tidy RUN cargo install run-clang-tidy
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# option B: install pre-built clang wrappers # option B: install pre-built clang wrappers
# RUN mkdir -p /usr/local/run-clang-format
# RUN wget -O clang-utils.tgz "https://github.com/lmapii/run-clang-format/releases/download/v1.4.14/run-clang-format-v1.4.14-i686-unknown-linux-gnu.tar.gz" && \
# tar -C /usr/local/run-clang-format -xzf clang-utils.tgz --strip-components 1 && \
# rm clang-utils.tgz
# ENV PATH /usr/local/run-clang-format:$PATH
# RUN run-clang-format --version
RUN mkdir -p /usr/local/run-clang-format # RUN mkdir -p /usr/local/run-clang-tidy
RUN wget -O clang-utils.tgz "https://github.com/lmapii/run-clang-format/releases/download/v1.4.14/run-clang-format-v1.4.14-i686-unknown-linux-gnu.tar.gz" && \ # RUN wget -O clang-utils.tgz "https://github.com/lmapii/run-clang-tidy/releases/download/v0.2.5/run-clang-tidy-v0.2.5-i686-unknown-linux-gnu.tar.gz" && \
tar -C /usr/local/run-clang-format -xzf clang-utils.tgz --strip-components 1 && \ # tar -C /usr/local/run-clang-tidy -xzf clang-utils.tgz --strip-components 1 && \
rm clang-utils.tgz # rm clang-utils.tgz
ENV PATH /usr/local/run-clang-format:$PATH # ENV PATH /usr/local/run-clang-tidy:$PATH
RUN run-clang-format --version # RUN run-clang-tidy --version
RUN mkdir -p /usr/local/run-clang-tidy
RUN wget -O clang-utils.tgz "https://github.com/lmapii/run-clang-tidy/releases/download/v0.2.5/run-clang-tidy-v0.2.5-i686-unknown-linux-gnu.tar.gz" && \
tar -C /usr/local/run-clang-tidy -xzf clang-utils.tgz --strip-components 1 && \
rm clang-utils.tgz
ENV PATH /usr/local/run-clang-tidy:$PATH
RUN run-clang-tidy --version
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# install unity and ceedling # install unity and ceedling

View File

@@ -7,7 +7,6 @@ builder-run :
docker run \ docker run \
--rm \ --rm \
-it \ -it \
--platform linux/amd64 \
--workdir /builder/mnt \ --workdir /builder/mnt \
-v .:/builder/mnt \ -v .:/builder/mnt \
$(project_name)-builder:latest \ $(project_name)-builder:latest \