Update dtk-template, add build cache to CI workflow (#854)

* Update dtk-template, add build cache to CI workflow

* Add --merge argument

* Add --commit-time

* Update compilers, objdiff, wibo
This commit is contained in:
LagoLunatic
2025-08-15 15:54:43 -04:00
committed by GitHub
parent c4e0bb60fb
commit d3ea38b181
4 changed files with 33 additions and 11 deletions
+16 -1
View File
@@ -25,15 +25,30 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
# Set Git config
- name: Git config
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Normalize file mod times
- name: Restore timestamps
run: uv run https://raw.githubusercontent.com/MestreLion/git-tools/refs/tags/v2022.12/git-restore-mtime --merge --commit-time
# Copy the original files to the workspace
- name: Prepare
run: cp -R /orig .
run: cp -a /orig .
# Restore cached files
- name: Cache build
uses: actions/cache@v4
with:
path: |
build
.ninja_deps
.ninja_log
key: ${{ runner.os }}-${{ matrix.version }}
# Build the project
- name: Build