Skip to content

Made enhancements to BitCastScalar and fixed F16 compare operators #10169

Made enhancements to BitCastScalar and fixed F16 compare operators

Made enhancements to BitCastScalar and fixed F16 compare operators #10169

Workflow file for this run

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
permissions: read-all
name: Build / test
on: [push, pull_request]
jobs:
cmake:
name: Build and test ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: Clang-6.0
extra_deps: clang-6.0
c_compiler: clang-6.0
cxx_compiler: clang++-6.0
- name: Clang-7
extra_deps: clang-7
c_compiler: clang-7
cxx_compiler: clang++-7
- name: Clang-8
extra_deps: clang-8
c_compiler: clang-8
cxx_compiler: clang++-8
- name: Clang-9
extra_deps: clang-9
c_compiler: clang-9
cxx_compiler: clang++-9
- name: Clang-10
extra_deps: clang-10
c_compiler: clang-10
cxx_compiler: clang++-10
- name: Clang-11
extra_deps: clang-11
c_compiler: clang-11
cxx_compiler: clang++-11
- name: Clang-12
extra_deps: clang-12
c_compiler: clang-12
cxx_compiler: clang++-12
- name: GCC-8
extra_deps: g++-8
c_compiler: gcc-8
cxx_compiler: g++-8
cxx_flags: -ftrapv
- name: GCC-9
extra_deps: g++-9
c_compiler: gcc-9
cxx_compiler: g++-9
cxx_flags: -ftrapv
- name: GCC-10
extra_deps: g++-10
c_compiler: gcc-10
cxx_compiler: g++-10
cxx_flags: -ftrapv
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit # cannot be block - runner does git checkout
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
- name: Install deps
run: sudo apt-get install ${{ matrix.extra_deps }}
- name: Build and test
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=2
export CTEST_PARALLEL_LEVEL=2
CXXFLAGS=${{ matrix.cxx_flags }} CC=${{ matrix.c_compiler }} CXX=${{ matrix.cxx_compiler }} cmake -DHWY_WARNINGS_ARE_ERRORS=ON -B out .
cmake --build out
ctest --test-dir out
cmake_ubuntu_2204:
name: Build and test ${{ matrix.name }}
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- name: Clang-13
extra_deps: clang-13
c_compiler: clang-13
cxx_compiler: clang++-13
- name: Clang-14
extra_deps: clang-14
c_compiler: clang-14
cxx_compiler: clang++-14
- name: Clang-15
extra_deps: clang-15
c_compiler: clang-15
cxx_compiler: clang++-15
- name: GCC-11
extra_deps: g++-11
c_compiler: gcc-11
cxx_compiler: g++-11
cxx_flags: -ftrapv
- name: GCC-12
extra_deps: g++-12
c_compiler: gcc-12
cxx_compiler: g++-12
cxx_flags: -ftrapv
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit # cannot be block - runner does git checkout
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
- name: Install deps
run: sudo apt-get install ${{ matrix.extra_deps }}
- name: Build and test
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=2
export CTEST_PARALLEL_LEVEL=2
CXXFLAGS=${{ matrix.cxx_flags }} CC=${{ matrix.c_compiler }} CXX=${{ matrix.cxx_compiler }} cmake -DHWY_WARNINGS_ARE_ERRORS=ON -B out .
cmake --build out
ctest --test-dir out
bazel:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit # cannot be block - runner does git checkout
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
- uses: bazelbuild/setup-bazelisk@95c9bf48d0c570bb3e28e57108f3450cd67c1a44 # v2.0.0
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.cache/bazel
key: bazel-${{ runner.os }}
- run: bazel build //...