Skip to content

Commit 2b7599f

Browse files
committed
ci: fix aarch64 nightly failures
The aarch64 nightly ci is failing due to a recent change in uxlfoundation#2388 where the ACL caching mechanism was changed. This updates the nightly pipeline to use the new caching system
1 parent 4ffd446 commit 2b7599f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/nightly-aarch64.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ concurrency:
3535
permissions: read-all
3636

3737
jobs:
38+
build-acl-cache:
39+
uses: ./.github/workflows/aarch64-acl.yml
40+
3841
build-and-test:
42+
needs: build-acl-cache
3943
strategy:
4044
matrix:
4145
config: [
@@ -83,21 +87,20 @@ jobs:
8387
ACL_ROOT_DIR: ${{ github.workspace }}/ComputeLibrary
8488
ACL_VERSION: ${{ fromJson(steps.get-versions.outputs.output).dependencies.acl }}
8589

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
9693

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
101104

102105
- name: Configure oneDNN
103106
run: ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh

0 commit comments

Comments
 (0)