Skip to content

Commit bb12f80

Browse files
committed
[CPU] Add x64 small ci
1 parent 0bbc7a7 commit bb12f80

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

.github/workflows/ci-x64.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# *******************************************************************************
2+
# Copyright 2024 Arm Limited and affiliates.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
# *******************************************************************************
17+
18+
name: "CI x64"
19+
20+
#* To avoid duplicate jobs running when both push and PR is satisfied, we use this:
21+
#* https://github.com/orgs/community/discussions/26940#discussioncomment-5686753
22+
on:
23+
push:
24+
pull_request:
25+
types: [opened, synchronize, reopened]
26+
27+
#* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
28+
#* Does not apply to the main branch.
29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.ref }}
31+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
32+
33+
# Declare default permissions as read only.
34+
permissions: read-all
35+
36+
jobs:
37+
macos:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
config: [
42+
{ toolset: gcc, build: Release },
43+
]
44+
45+
name: Ubuntu, ${{ matrix.config.toolset }}, ${{ matrix.config.build }}
46+
steps:
47+
- name: Checkout oneDNN
48+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
with:
50+
path: oneDNN
51+
52+
- name: Get system name
53+
id: get_system_name
54+
run: (echo "SystemName=$(uname)") >> $GITHUB_OUTPUT
55+
56+
- name: Build oneDNN
57+
run: |
58+
${{ github.workspace }}/oneDNN/.github/automation/build.sh \
59+
--threading omp --mode release \
60+
--source-dir ${{ github.workspace }}/oneDNN \
61+
--build-dir ${{ github.workspace }}/oneDNN/build \
62+
--cmake-opt ""
63+
working-directory: ${{ github.workspace }}/oneDNN
64+
env:
65+
BUILD_TOOLSET: ${{ matrix.config.toolset }}
66+
CMAKE_BUILD_TYPE: ${{ matrix.config.build }}
67+
GCC_VERSION: 14
68+
69+
- name: Run oneDNN smoke tests
70+
run: ${{ github.workspace }}/oneDNN/.github/automation/test.sh
71+
working-directory: ${{ github.workspace }}/oneDNN/build
72+
env:
73+
CMAKE_BUILD_TYPE: ${{ matrix.config.build }}

0 commit comments

Comments
 (0)