generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 23
62 lines (60 loc) · 1.72 KB
/
mtime.yml
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
53
54
55
56
57
58
59
60
61
62
name: mtime
on:
pull_request:
# push:
permissions:
contents: read
jobs:
job-1:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
julia-version:
- '1.8.5'
- '1.9.2'
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- run: sleep 3
- run: rm -rfv ~/.julia
- uses: julia-actions/setup-julia@v1.9.2
with:
version: '${{ matrix.julia-version }}'
- run: |
MAJMIN = "$(Base.VERSION.major).$(Base.VERSION.minor)"
file = joinpath(dirname(Sys.BINDIR), "share", "julia", "stdlib", "v$(MAJMIN)", "MbedTLS_jll", "src", "MbedTLS_jll.jl")
# Print mtime
# On macOS, use `stat -f %m`
# On Linux, use `stat -c %Y`
run(`stat -c %Y $(file)`)
shell: julia --startup-file=no --color=yes {0}
job-2:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [job-1]
strategy:
fail-fast: false
matrix:
julia-version:
- '1.8.5'
- '1.9.2'
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- run: sleep 3
- run: rm -rfv ~/.julia
- uses: julia-actions/setup-julia@v1.9.2
with:
version: '${{ matrix.julia-version }}'
- run: |
MAJMIN = "$(Base.VERSION.major).$(Base.VERSION.minor)"
file = joinpath(dirname(Sys.BINDIR), "share", "julia", "stdlib", "v$(MAJMIN)", "MbedTLS_jll", "src", "MbedTLS_jll.jl")
# Print mtime
# On macOS, use `stat -f %m`
# On Linux, use `stat -c %Y`
run(`stat -c %Y $(file)`)
shell: julia --startup-file=no --color=yes {0}