fixed build status, updated run-clang-x tools (#4)
* fixed build status, updated run-clang-x tools * added pull_request as CI trigger
This commit is contained in:
parent
0fec0edb19
commit
58cabb97d0
|
@ -1,8 +1,7 @@
|
||||||
|
|
||||||
name: ci
|
name: ci
|
||||||
on:
|
on:
|
||||||
# FIXME: if you want this to be available for PRs, uncomment this line
|
pull_request:
|
||||||
# pull_request:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
|
@ -4,6 +4,10 @@ ARG base_img=mcr.microsoft.com/vscode/devcontainers/base:dev-${base_tag}
|
||||||
|
|
||||||
FROM --platform=linux/amd64 ${base_img} AS builder-install
|
FROM --platform=linux/amd64 ${base_img} AS builder-install
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# the version to install with <package>=<version> in the list below.
|
||||||
|
|
||||||
RUN apt-get update --fix-missing && apt-get -y upgrade
|
RUN apt-get update --fix-missing && apt-get -y upgrade
|
||||||
RUN apt-get install -y --no-install-recommends \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
|
@ -68,14 +72,14 @@ RUN ln -s /usr/bin/clang-tidy-${llvm_version} /usr/local/bin/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 mkdir -p /usr/local/run-clang-format
|
||||||
RUN wget -O clang-utils.tgz "https://github.com/lmapii/run-clang-format/releases/download/v1.4.13/run-clang-format-v1.4.13-i686-unknown-linux-gnu.tar.gz" && \
|
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 && \
|
tar -C /usr/local/run-clang-format -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-format:$PATH
|
||||||
RUN run-clang-format --version
|
RUN run-clang-format --version
|
||||||
|
|
||||||
RUN mkdir -p /usr/local/run-clang-tidy
|
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.4/run-clang-tidy-v0.2.4-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-tidy -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-tidy:$PATH
|
ENV PATH /usr/local/run-clang-tidy:$PATH
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
[](https://github.com/lmapii/pkt/actions)
|
[](https://github.com/lmapii/cproject/actions)
|
||||||
|
|
||||||
# Example repository for a C development environment
|
# Example repository for a C development environment
|
||||||
|
|
||||||
This is the example repository for a [post on the Interrupt blog](https://interrupt.memfault.com/blog/a-modern-c-dev-env). It is a demo development environment using Docker, CMake, Unity, and GitHub Actions.
|
This is the example repository for a [post on the Interrupt blog](https://interrupt.memfault.com/blog/a-modern-c-dev-env). It is a demo development environment using Docker, CMake, Unity, and GitHub Actions.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue