Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
45aa6a38
Commit
45aa6a38
authored
Jul 18, 2021
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a step to get git commit hash
parent
5c9b76ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
core.yml
.github/workflows/core.yml
+12
-6
No files found.
.github/workflows/core.yml
View file @
45aa6a38
...
@@ -41,17 +41,19 @@ jobs:
...
@@ -41,17 +41,19 @@ jobs:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
with
:
with
:
submodules
:
recursive
submodules
:
recursive
-
name
:
Get commit hash
id
:
get-commit-hash
run
:
|
echo "::set-output name=hash::$(git rev-parse --short HEAD)"
-
name
:
Cache libs
-
name
:
Cache libs
uses
:
actions/cache@v2
uses
:
actions/cache@v2
env
:
GIT_HASH
:
$(git rev-parse --short HEAD)
with
:
with
:
path
:
|
path
:
|
build
build
wasm/cache
wasm/cache
key
:
${{ env.CACHE_KEY_PREFIX }}-${{
env.GIT_HASH
}}-${{ matrix.script }}
key
:
${{ env.CACHE_KEY_PREFIX }}-${{
steps.get-commit-hash.outputs.hash
}}-${{ matrix.script }}
restore-keys
:
|
restore-keys
:
|
${{ env.CACHE_KEY_PREFIX }}-${{
env.GIT_HASH
}}-
${{ env.CACHE_KEY_PREFIX }}-${{
steps.get-commit-hash.outputs.hash
}}-
-
name
:
List cached libs
-
name
:
List cached libs
run
:
ls build/lib ||
true
run
:
ls build/lib ||
true
-
name
:
Build FFMpeg Libs
-
name
:
Build FFMpeg Libs
...
@@ -63,6 +65,10 @@ jobs:
...
@@ -63,6 +65,10 @@ jobs:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
with
:
with
:
submodules
:
recursive
submodules
:
recursive
-
name
:
Get commit hash
id
:
get-commit-hash
run
:
|
echo "::set-output name=hash::$(git rev-parse --short HEAD)"
-
name
:
Cache multiple paths
-
name
:
Cache multiple paths
uses
:
actions/cache@v2
uses
:
actions/cache@v2
env
:
env
:
...
@@ -71,9 +77,9 @@ jobs:
...
@@ -71,9 +77,9 @@ jobs:
path
:
|
path
:
|
build
build
wasm/cache
wasm/cache
key
:
${{ env.CACHE_KEY_PREFIX }}-${{
env.GIT_HASH
}}-ffmpeg
key
:
${{ env.CACHE_KEY_PREFIX }}-${{
steps.get-commit-hash.outputs.hash
}}-ffmpeg
restore-keys
:
|
restore-keys
:
|
${{ env.CACHE_KEY_PREFIX }}-${{
env.GIT_HASH
}}-
${{ env.CACHE_KEY_PREFIX }}-${{
steps.get-commit-hash.outputs.hash
}}-
-
name
:
List cached libs
-
name
:
List cached libs
run
:
ls build/lib ||
true
run
:
ls build/lib ||
true
-
name
:
Build FFMpeg
-
name
:
Build FFMpeg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment