Skip to content

Commit a02d678

Browse files
committed
Test: Modify FindMKL.cmake
1 parent 2543590 commit a02d678

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/devcontainer.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Container
22

33
on:
4+
pull_request: # 当有 PR 指向 develop 分支时触发
5+
branches:
6+
- develop
47
push:
58
branches:
69
- develop
@@ -54,6 +57,7 @@ jobs:
5457
tags: ${{ steps.meta.outputs.tags }}
5558
labels: ${{ steps.meta.outputs.labels }}
5659
file: Dockerfile.${{ matrix.dockerfile }}
57-
push: true
60+
# 只有在 develop 分支或打标签时才推送,PR时不推送
61+
push: ${{ github.event_name != 'pull_request' }}
5862
cache-from: type=registry,ref=ghcr.io/deepmodeling/abacus-${{ matrix.dockerfile }}:latest
5963
cache-to: type=inline

cmake/FindMKL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# MKL_INCLUDE - where to find mkl.h, etc.
55
# MKL_FOUND - True if mkl found.
66

7-
find_package(MKL NO_MODULE) # try using official module first
7+
# find_package(MKL NO_MODULE) # try using official module first
88
if(NOT TARGET MKL::MKL)
99

1010
find_path(MKL_INCLUDE mkl_service.h HINTS ${MKLROOT}/include)

0 commit comments

Comments
 (0)