Skip to content

Removed some redundant stuff #57

Removed some redundant stuff

Removed some redundant stuff #57

Workflow file for this run

name: compilers
on: [push, pull_request]
env:
cache-suffix: v11
build_flags: "-DWITH_COMMON=OFF -DWITH_THREAD=ON -DWITH_WERROR=ON -DWITH_EXTRA_WARNINGS=ON"
jobs:
linux-22_04-gcc:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ['9','10','11','12']
steps:
- uses: actions/[email protected]
- name: Build
run: |
if [ "${{ matrix.compiler }}" = "12" ]; then
# see https://github.com/pytorch/pytorch/issues/77939
extra_build_flags="-DWITH_WERROR=OFF"
fi
CC=gcc-${{ matrix.compiler }} FC=gfortran-${{ matrix.compiler }} CXX=g++-${{ matrix.compiler }} cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} $extra_build_flags -H.
cmake --build build -v
linux-22_04-clang:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ['12','13','14']
steps:
- uses: actions/[email protected]
- name: Build
run: |
CC=clang-${{ matrix.compiler }} FC=gfortran-${{ matrix.compiler }} CXX=clang++-${{ matrix.compiler }} cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
linux-latest:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-latest:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-12:
runs-on: macos-12
steps:
- uses: actions/[email protected]
- name: Build
run: |
cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
macos-12-clang15:
runs-on: macos-12
steps:
- uses: actions/[email protected]
- name: Build
run: |
CC=$(brew --prefix llvm@15)/bin/clang FC=gfortran-11 CXX=$(brew --prefix llvm@15)/bin/clang++ cmake -Bbuild -DWITH_SELFCONTAINED=ON ${{env.build_flags}} -H.
cmake --build build -v
windows-2019:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
arch: [x64,Win32]
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "Visual Studio 16 2019" -A ${{ matrix.arch }} -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install
cmake --build build --target install --config Release -v
windows-2022:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch: [x64,Win32]
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install
cmake --build build --target install --config Release -v
windows-latest-mingw:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/[email protected]
- name : Build
run: |
cmake -Bbuild -G "MinGW Makefiles" -DWITH_SELFCONTAINED=ON -DCMAKE_INSTALL_PREFIX=install ${{env.build_flags}}
cmake --build build --target install --config Release -v