Skip to content

Conversation

samrocketman
Copy link
Contributor

@samrocketman samrocketman commented Feb 20, 2022

This change fixes the format check in GitHub actions ran by clang-format.

Hidden environment setup (click to expand)

Dockerfile

FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN set -ex; \
apt-get update; \
apt-get install -y build-essential meson appstream clang clang-format clang-tools libdbus-1-dev libinih-dev libsystemd-dev git

RUN set -ex; \
yes | adduser ci-user

USER ci-user

Environment setup

sudo su -g docker $USER
docker build -t ci .

clang-format fix

docker run -e CI=true --rm -v "$PWD:$PWD" -w "$PWD" --init ci ./scripts/format-check.sh

Old Puppy

image

This change fixes the format check in GitHub actions ran by `clang-format`.

Dockerfile

```dockerfile
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive

RUN set -ex; \
apt-get update; \
apt-get install -y build-essential meson appstream clang clang-format clang-tools libdbus-1-dev libinih-dev libsystemd-dev git

RUN set -ex; \
yes | adduser ci-user

USER ci-user
```

Environment setup

```bash
sudo su -g docker $USER
docker build -t ci .
```

clang-format fix

```bash
docker run -e CI=true --rm -v "$PWD:$PWD" -w "$PWD" --init ci ./scripts/format-check.sh
```
@samrocketman samrocketman mentioned this pull request Feb 20, 2022
4 tasks
@afayaz-feral afayaz-feral merged commit 23493e5 into FeralInteractive:master Feb 21, 2022
@samrocketman samrocketman deleted the fix-github-actions branch February 25, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants