File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,30 @@ jobs:
2929 name : ffmpeg-${{ inputs.tag_name||github.ref_name }}-${{matrix.license}}-${{matrix.arch}}-${{matrix.type}}
3030 target : ${{contains(matrix.arch,'arm')&&format('amd64_{0}',matrix.arch)||matrix.arch}}
3131 steps :
32- - name : Find MSVC
32+ - uses : actions/checkout@v4
33+ with :
34+ ref : ${{env.TAG_NAME}}
35+ # submodules: recursive
36+
37+ - name : Setup Env
3338 shell : bash
34- id : msvc
39+ id : setup
3540 run : |
3641 echo "installationPath=$(vswhere -all -legacy -property installationPath)">>$GITHUB_OUTPUT
37- - uses : actions/checkout@v4
42+ KEY=$(git ls-tree -r ${{env.TAG_NAME}}|grep ^160000|sort -d|md5sum|cut -d' ' -f1)
43+ echo "cache-key=$KEY" >>$GITHUB_OUTPUT
44+
45+ - name : Restore cached submodules
46+ id : cache-submodules-restore
47+ uses : actions/cache@v4
3848 with :
39- ref : ${{env.TAG_NAME}}
40- submodules : recursive
49+ path : .git/modules
50+ key : ${{ runner.os }}-${{steps.setup.outputs.cache-key}}-submodules
51+
52+ - name : Pull submodules
53+ shell : bash
54+ run : |
55+ git submodule update --init --recursive --depth 1
4156
4257 - uses : msys2/setup-msys2@v2
4358 with :
5873 - name : Build
5974 shell : cmd
6075 run : |
61- CALL "${{steps.msvc .outputs.installationPath}}\VC\Auxiliary\Build\vcvarsall.bat" ${{env.target}} ${{env.SDK_VER}}
76+ CALL "${{steps.setup .outputs.installationPath}}\VC\Auxiliary\Build\vcvarsall.bat" ${{env.target}} ${{env.SDK_VER}}
6277 msys2 -c "./build.sh ${{matrix.arch}} ${{matrix.type}} ${{matrix.license}}"
6378
6479 - name : Debug log
7994 cd ${CWD}
8095 sha1sum ${{env.name}}.zip >${{env.name}}.sha1
8196 ./build-changelog.sh > changelog
97+
8298 - name : Release
8399 if : ${{startsWith(github.ref, 'refs/tags/')}}
84100 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments