24
24
pull_request :
25
25
types : [opened, synchronize, reopened]
26
26
27
+ # TODO: Fix job cancellation.
27
28
# * Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
28
29
# * Does not apply to the main branch.
29
- concurrency :
30
- group : ${{ github.ref }}
31
- cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
30
+ # concurrency:
31
+ # group: ${{ github.ref }}
32
+ # cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
32
33
33
34
# Declare default permissions as read only.
34
35
permissions : read-all
@@ -53,13 +54,48 @@ jobs:
53
54
with :
54
55
packages : scons
55
56
57
+ - name : Clone ACL
58
+ run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
59
+ env :
60
+ ACL_ACTION : clone
61
+ ACL_CONFIG : ${{ matrix.config }}
62
+ ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
63
+ BUILD_TOOLSET : ${{ matrix.toolset }}
64
+ GCC_VERSION : 13
65
+
66
+ - name : Get ACL commit hash for cache key
67
+ id : get_acl_commit_hash
68
+ run : (cd ${{ github.workspace }}/ComputeLibrary && echo "ACLCommitHash=$(git rev-parse --short HEAD)") >> $GITHUB_OUTPUT
69
+
70
+ - name : Get system name
71
+ id : get_system_name
72
+ run : (echo "SystemName=$(uname)") >> $GITHUB_OUTPUT
73
+
74
+ - name : Restore cached ACL
75
+ id : cache-acl-restore
76
+ uses : actions/cache/restore@v4
77
+ with :
78
+ # Key must have MacOS version to force rebuild when it is updated.
79
+ key : ${{ steps.get_system_name.outputs.SystemName }}-15-acl-${{ matrix.toolset }}-${{ matrix.config }}-${{ steps.get_acl_commit_hash.outputs.ACLCommitHash }}
80
+ path : ${{ github.workspace }}/ComputeLibrary/build
81
+
56
82
- name : Build ACL
83
+ if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
57
84
run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
58
85
env :
86
+ ACL_ACTION : build
59
87
ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
60
88
BUILD_TOOLSET : ${{ matrix.toolset }}
61
89
ACL_CONFIG : ${{ matrix.config }}
62
- GCC_VERSION : 14
90
+ GCC_VERSION : 13
91
+
92
+ - name : Save ACL in cache
93
+ if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
94
+ id : cache-acl_build-save
95
+ uses : actions/cache/save@v4
96
+ with :
97
+ key : ${{ steps.cache-acl-restore.outputs.cache-primary-key }}
98
+ path : ${{ github.workspace }}/ComputeLibrary/build
63
99
64
100
- name : Build oneDNN
65
101
run : ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh
@@ -68,16 +104,16 @@ jobs:
68
104
ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
69
105
BUILD_TOOLSET : ${{ matrix.toolset }}
70
106
CMAKE_BUILD_TYPE : ${{ matrix.config }}
71
- GCC_VERSION : 14
72
-
107
+ GCC_VERSION : 13
108
+
73
109
- if : matrix.toolset == 'clang'
74
110
name : Run oneDNN smoke tests
75
111
run : ${{ github.workspace }}/oneDNN/.github/automation/test_aarch64.sh
76
112
working-directory : ${{ github.workspace }}/oneDNN/build
77
113
env :
78
114
CMAKE_BUILD_TYPE : ${{ matrix.config }}
79
115
DYLD_LIBRARY_PATH : ${{ github.workspace }}/ComputeLibrary/build
80
-
116
+
81
117
# We only run the linux aarch64 runners if macos smoke tests pass.
82
118
linux :
83
119
needs : macos
0 commit comments