aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml41
-rw-r--r--.github/workflows/release.yml25
2 files changed, 52 insertions, 14 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index da2cce844..7e13907d5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -34,11 +34,16 @@ jobs:
- uses: actions/checkout@v1
- name: Create .ccache dir
run: mkdir -p ~/.ccache
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
- key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
+ key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
- name: Pull the Docker Image
run: docker-compose pull ${{ matrix.config.image }}
- name: Print ccache stats
@@ -110,11 +115,16 @@ jobs:
- uses: actions/checkout@v1
- name: Create .ccache dir
run: mkdir -p ~/.ccache
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
- key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
+ key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
- name: Pull the Docker Image
run: docker-compose pull ${{ matrix.config.image }}
- name: Print ccache stats
@@ -157,11 +167,16 @@ jobs:
- uses: actions/checkout@v1
- name: Create .ccache dir
run: mkdir -p ~/.ccache
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
- key: ${{ runner.os }}-ccache
+ key: ${{ runner.os }}-clang-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-clang-ccache
- name: Install required packages
run: |
brew install ccache p7zip
@@ -207,12 +222,17 @@ jobs:
QT_ASSUME_STDERR_HAS_CONSOLE: 1
steps:
- uses: actions/checkout@v1
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: clcache cache files
uses: actions/cache@v4
with:
path: ~/clcache
- key: ${{ runner.os }}-msvc-clcache
- - name: Set up Python ${{ matrix.python-version }}
+ key: ${{ runner.os }}-msvc-clcache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-msvc-clcache
+ - name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
@@ -264,12 +284,17 @@ jobs:
CCACHE_DIR: ${{ github.workspace }}\ccache
steps:
- uses: actions/checkout@v1
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
- path: ${{ github.workspace }}/ccache
- key: ${{ runner.os }}-mingw-ccache
- - name: Set up Python ${{ matrix.python-version }}
+ path: ~/.ccache
+ key: ${{ runner.os }}-mingw-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-mingw-ccache
+ - name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1b65762e7..168518385 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -35,13 +35,16 @@ jobs:
- uses: actions/checkout@v1
- name: Create .ccache dir
run: mkdir -p ~/.ccache
- - name: test
- run: echo ${{ github.ref }}
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
- key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
+ key: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-${{ matrix.config.cacheid }}-ccache
- name: Pull the Docker Image
run: docker-compose pull jammy-qt6
- name: Print ccache stats
@@ -77,11 +80,16 @@ jobs:
- uses: actions/checkout@v1
- name: Create .ccache dir
run: mkdir -p ~/.ccache
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: ccache cache files
uses: actions/cache@v4
with:
path: ~/.ccache
- key: ${{ runner.os }}-release-ccache
+ key: ${{ runner.os }}-release-ccache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-release-ccache
- name: Install required packages
run: |
brew install ccache p7zip
@@ -124,11 +132,16 @@ jobs:
- name: Create .ccache dir
run: mkdir -p ~/.ccache
shell: bash
+ - name: prepare timestamp
+ id: get-timestamp
+ run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
+ shell: bash
- name: clcache cache files
uses: actions/cache@v4
with:
- path: ~/.ccache
- key: ${{ runner.os }}-release-msvc-docker-clcache
+ path: ~/clcache
+ key: ${{ runner.os }}-release-msvc-docker-clcache-${{ steps.get-timestamp.outputs.timestamp }}
+ restore-keys: ${{ runner.os }}-release-msvc-docker-clcache
- name: Pull the Windows Image
run: docker-compose pull windows
- name: Print clcache stats