diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 38fb06c..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Build - -on: - push: - paths: - - '**.c' - - '**.cpp' - - '**.h' - - '**.hpp' - - '**.cmake' - - '**/CMakeLists.txt' - - '.github/workflows/build.yml' - pull_request: - paths: - - '**.c' - - '**.cpp' - - '**.h' - - '**.hpp' - - '**.cmake' - - '**/CMakeLists.txt' - - '.github/workflows/build.yml' - -jobs: - Build: - name: ${{ matrix.config.name }} - runs-on: ${{ matrix.config.os }} - strategy: - fail-fast: false - matrix: - config: - - { - name: "Windows / MSVC 16", - os: windows-2019, - config: Release, - cxx_standard: 20, - cmake_extra_args: -G "Visual Studio 16 2019" -A x64 -DCMAKE_CXX_FLAGS="/O2", - sudocmd: "", - artifact_name: "Windows x64", - cores: 2, - } - - { - name: "Ubuntu / GCC 11", - os: ubuntu-20.04, - config: Release, - cxx_standard: 20, - cmake_extra_args: "-DCMAKE_C_COMPILER=/usr/bin/gcc-11 -DCMAKE_CXX_COMPILER=/usr/bin/g++-11 -DCMAKE_CXX_FLAGS=\"-O2\"", - sudocmd: "sudo", - artifact_name: "Linux", - cores: 2, - } - - { - name: "Mac OS / Clang 13", - os: macos-11.0, - config: Release, - cxx_standard: 20, - cmake_extra_args: "-DCMAKE_C_COMPILER=/usr/local/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DCMAKE_CXX_FLAGS=\"-O2\"", - sudocmd: "sudo", - artifact_name: "MacOSX", - cores: 4, - } - steps: - - uses: actions/checkout@v2 - - name: Update GCC - if: matrix.config.os == 'ubuntu-20.04' - run: | - sudo apt-get install -y gcc-11 gcc-11-multilib g++-11 g++-11-multilib - name=CC::gcc-11 - name=CXX::g++-11 - - name: Update Clang - if: matrix.config.os == 'macos-11.0' - run: | - curl --output clang.tar.xz -L https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/clang+llvm-13.0.1-x86_64-apple-darwin.tar.xz - mkdir clang - tar -xvJf clang.tar.xz -C clang - cd clang/clang+llvm-13.0.1-x86_64-apple-darwin - sudo cp -R * /usr/local/ - export CC=/usr/local/bin/clang - export CXX=/usr/local/bin/clang++ - - name: Create Work Dir - run: mkdir build - - name: Configure Build Script - working-directory: ./build - run: | - cmake .. ${{ matrix.config.cmake_extra_args }} -DCMAKE_BUILD_TYPE=${{ matrix.config.config }} - - name: Build All Targets - working-directory: ./build - run: cmake --build . -j ${{ matrix.config.cores }} --config ${{ matrix.config.config }} - - name: Test - working-directory: ./build - run: ctest -j ${{ matrix.config.cores }} -C ${{ matrix.config.config }} \ No newline at end of file