Commit d3be730 1 parent eb389db commit d3be730 Copy full SHA for d3be730
File tree 4 files changed +14
-12
lines changed
4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,20 @@ jobs:
28
28
repo : " https://github.com/shinchiro/mpv-winbuild-cmake.git"
29
29
- name : Get current time
30
30
run : |
31
- export TZ='Asia/Shanghai'
32
31
echo "long_time=$(date "+%Y-%m-%d %H:%M")" >> $GITHUB_ENV
33
32
echo "short_time=$(date "+%Y-%m-%d")" >> $GITHUB_ENV
33
+ echo "month=$(date "+%Y-%m")" >> $GITHUB_ENV
34
34
echo "sha=$(expr substr "${{ steps.get_sha.outputs.sha }}" 1 7)" >> $GITHUB_ENV
35
35
36
36
- name : Cache
37
37
uses : actions/cache@v2
38
38
with :
39
39
path : mpv-winbuild-cmake/build${{ matrix.bit }}
40
- key : ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}-${{ steps.get_sha .outputs.sha }}-${{ env.short_time }}
40
+ key : ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}-${{ steps.build_sha .outputs.sha }}-${{ env.short_time }}
41
41
restore-keys : |
42
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}-${{ steps.get_sha .outputs.sha }}
43
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}
44
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-
42
+ ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}-${{ steps.build_sha .outputs.sha }}
43
+ ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}
44
+
45
45
- name : Build
46
46
shell : bash
47
47
run : |
Original file line number Diff line number Diff line change @@ -28,20 +28,20 @@ jobs:
28
28
repo : " https://github.com/dyphire/mpv-winbuild-cmake.git"
29
29
- name : Get current time
30
30
run : |
31
- export TZ='Asia/Shanghai'
32
31
echo "long_time=$(date "+%Y-%m-%d %H:%M")" >> $GITHUB_ENV
33
32
echo "short_time=$(date "+%Y-%m-%d")" >> $GITHUB_ENV
33
+ echo "month=$(date "+%Y-%m")" >> $GITHUB_ENV
34
34
echo "sha=$(expr substr "${{ steps.get_sha.outputs.sha }}" 1 7)" >> $GITHUB_ENV
35
35
36
36
- name : Cache
37
37
uses : actions/cache@v2
38
38
with :
39
39
path : mpv-winbuild-cmake/build${{ matrix.bit }}
40
- key : ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}-${{ steps.get_sha .outputs.sha }}-${{ env.short_time }}
40
+ key : ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}-${{ steps.build_sha .outputs.sha }}-${{ env.short_time }}
41
41
restore-keys : |
42
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}-${{ steps.get_sha .outputs.sha }}
43
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ steps.build_sha.outputs.sha }}
44
- ${{ runner.os }}-mpv-build${{ matrix.bit }}-
42
+ ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}-${{ steps.build_sha .outputs.sha }}
43
+ ${{ runner.os }}-mpv-build${{ matrix.bit }}-${{ env.month }}
44
+
45
45
- name : Build
46
46
shell : bash
47
47
run : |
Original file line number Diff line number Diff line change 2
2
set -x
3
3
4
4
main () {
5
- export TZ=' Asia/Shanghai'
6
5
dependency
7
6
local branch=" gcc10"
8
7
dependency
9
8
if [ -d mpv-winbuild-cmake ] ; then
10
9
git clone https://github.com/shinchiro/mpv-winbuild-cmake.git temp
10
+ shopt -s dotglob
11
11
mv -f temp/* mpv-winbuild-cmake/
12
+ shopt -u dotglob
12
13
sudo rm -rf temp
13
14
else
14
15
git clone https://github.com/shinchiro/mpv-winbuild-cmake.git
Original file line number Diff line number Diff line change 2
2
set -x
3
3
4
4
main () {
5
- export TZ=' Asia/Shanghai'
6
5
dependency
7
6
local branch=" gcc10"
8
7
dependency
9
8
if [ -d mpv-winbuild-cmake ] ; then
10
9
git clone https://github.com/dyphire/mpv-winbuild-cmake.git temp
10
+ shopt -s dotglob
11
11
mv -f temp/* mpv-winbuild-cmake/
12
+ shopt -u dotglob
12
13
sudo rm -rf temp
13
14
else
14
15
git clone https://github.com/dyphire/mpv-winbuild-cmake.git
You can’t perform that action at this time.
0 commit comments