-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (52 loc) · 1.49 KB
/
debug.yml
File metadata and controls
52 lines (52 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: debug
'on':
schedule:
- cron: 0 */6 * * *
workflow_dispatch: null
concurrency:
group: 'main'
cancel-in-progress: true
jobs:
main:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
'runs-on':
# - ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
# - macos-10.15
# - macos-11
- macos-12
- macos-13
- windows-2019
- windows-2022
name: '${{ matrix.runs-on }}'
runs-on: '${{ matrix.runs-on }}'
steps:
- uses: ysoftwareab/yplatform/.github/actions/debug@master
with:
file: debug.new.txt
- id: cache-keys
shell: bash
run: echo "yyyymm=$(/bin/date -u \"+%Y%m\")" >> ${GITHUB_OUTPUT}
- id: cache-keys-output
shell: bash
run: echo steps.cache-keys.output.yyyymm="${{ steps.cache-keys.output.yyyymm }}"
- id: cache
uses: actions/cache@v3
with:
path: |
debug.txt
key: ${{ matrix.runs-on }}-output-${{ steps.cache-keys.output.yyyymm }}-v1
'restore-keys': |
${{ matrix.runs-on }}-output-${{ steps.cache-keys.output.yyyymm }}-v1
- if: steps.cache.outputs.cache-hit == 'true'
shell: bash
# TODO nice if one can ignore values that are ever changing, and report only relevant diffs
run: |
diff --unified=1000000 debug.txt debug.new.txt || true
- shell: bash
run: |
mv debug.new.txt debug.txt