File tree 1 file changed +17
-14
lines changed
1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,11 @@ concurrency:
35
35
permissions : read-all
36
36
37
37
jobs :
38
+ build-acl-cache :
39
+ uses : ./.github/workflows/aarch64-acl.yml
40
+
38
41
build-and-test :
42
+ needs : build-acl-cache
39
43
strategy :
40
44
matrix :
41
45
config : [
@@ -83,21 +87,20 @@ jobs:
83
87
ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
84
88
ACL_VERSION : ${{ fromJson(steps.get-versions.outputs.output).dependencies.acl }}
85
89
86
- - name : Configure ACL
87
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
88
- env :
89
- ACL_ACTION : configure
90
- ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
91
- ACL_THREADING : ${{ matrix.config.threading }}
92
- BUILD_TOOLSET : ${{ matrix.config.toolset }}
93
- CMAKE_BUILD_TYPE : ${{ matrix.config.build }}
94
- CMAKE_GENERATOR : Ninja
95
- GCC_VERSION : ${{ fromJson(steps.get-versions.outputs.output).dependencies.gcc }}
90
+ - name : Get ACL commit hash for cache key
91
+ id : get_acl_commit_hash
92
+ run : (cd ${{ github.workspace }}/ComputeLibrary && echo "ACLCommitHash=$(git rev-parse --short HEAD)") >> $GITHUB_OUTPUT
96
93
97
- - name : Build ACL
98
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
99
- env :
100
- ACL_ACTION : build
94
+ - name : Get system name
95
+ id : get_system_name
96
+ run : (echo "SystemName=$(uname)") >> $GITHUB_OUTPUT
97
+
98
+ - name : Restore cached ACL
99
+ id : cache-acl-restore
100
+ uses : actions/cache/restore@v4
101
+ with :
102
+ key : ${{ steps.get_system_name.outputs.SystemName }}-acl-${{ matrix.config.toolset }}-${{ matrix.config.build }}-${{ steps.get_acl_commit_hash.outputs.ACLCommitHash }}
103
+ path : ${{ github.workspace }}/ComputeLibrary/build
101
104
102
105
- name : Configure oneDNN
103
106
run : ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh
You can’t perform that action at this time.
0 commit comments