@@ -53,14 +53,48 @@ jobs:
53
53
with :
54
54
packages : scons
55
55
56
+ - name : Clone ACL
57
+ run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
58
+ env :
59
+ ACL_ACTION : clone
60
+ ACL_CONFIG : ${{ matrix.config }}
61
+ ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
62
+ BUILD_TOOLSET : ${{ matrix.toolset }}
63
+ GCC_VERSION : 14
64
+
65
+ - name : Get ACL commit hash for cache key
66
+ id : get_acl_commit_hash
67
+ run : (cd ${{ github.workspace }}/ComputeLibrary && echo "ACLCommitHash=$(git rev-parse --short HEAD)") >> $GITHUB_OUTPUT
68
+
69
+ - name : Get system name
70
+ id : get_system_name
71
+ run : (echo "SystemName=$(uname)") >> $GITHUB_OUTPUT
72
+
73
+ - name : Restore cached ACL
74
+ id : cache-acl-restore
75
+ uses : actions/cache/restore@v4
76
+ with :
77
+ key : ${{ steps.get_system_name.outputs.SystemName }}-acl-${{ matrix.toolset }}-${{ matrix.config }}-${{ steps.get_acl_commit_hash.outputs.ACLCommitHash }}
78
+ path : ${{ github.workspace }}/ComputeLibrary/build
79
+
56
80
- name : Build ACL
81
+ if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
57
82
run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
58
83
env :
84
+ ACL_ACTION : build
59
85
ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
60
86
BUILD_TOOLSET : ${{ matrix.toolset }}
61
87
ACL_CONFIG : ${{ matrix.config }}
62
88
GCC_VERSION : 14
63
89
90
+ - name : Save ACL in cache
91
+ if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
92
+ id : cache-acl_build-save
93
+ uses : actions/cache/save@v4
94
+ with :
95
+ key : ${{ steps.cache-acl-restore.outputs.cache-primary-key }}
96
+ path : ${{ github.workspace }}/ComputeLibrary/build
97
+
64
98
- name : Build oneDNN
65
99
run : ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh
66
100
working-directory : ${{ github.workspace }}/oneDNN
@@ -69,15 +103,15 @@ jobs:
69
103
BUILD_TOOLSET : ${{ matrix.toolset }}
70
104
CMAKE_BUILD_TYPE : ${{ matrix.config }}
71
105
GCC_VERSION : 14
72
-
106
+
73
107
- if : matrix.toolset == 'clang'
74
108
name : Run oneDNN smoke tests
75
109
run : ${{ github.workspace }}/oneDNN/.github/automation/test_aarch64.sh
76
110
working-directory : ${{ github.workspace }}/oneDNN/build
77
111
env :
78
112
CMAKE_BUILD_TYPE : ${{ matrix.config }}
79
113
DYLD_LIBRARY_PATH : ${{ github.workspace }}/ComputeLibrary/build
80
-
114
+
81
115
# We only run the linux aarch64 runners if macos smoke tests pass.
82
116
linux :
83
117
needs : macos
0 commit comments