Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Caching docker images github actions #21

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/.build-caching/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Build caching

Here go all the cached builds that github actions require
7 changes: 7 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
- name: Set up Clang-Format
run: sudo apt-get install -y clang-format

- name: Cache clang image
id: cache-clang-formatter
uses: actions/cache@v4
with:
path: .github/build-caching
key: ${{ runner.os }}-clang-formatter

- name: Format source code
run: clang-format -i game/**/*.cpp game/**/*.hpp --ferror-limit=0 --style file:.clang-format --verbose

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
uses: actions/checkout@v3
- name: Build docker image
run: docker-compose build
- name: Cache project dependencies image
id: cache-project-dependencies
uses: actions/cache@v4
with:
path: .github/build-caching
key: ${{ runner.os }}-project-dependencies
- name: Run tests
run: docker-compose run test

Loading