diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..1dd3f51 --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,35 @@ +name: Build + +on: + - pull_request + - push + +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Configure + run: cmake -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' . + - name: Build + run: make VERBOSE=1 + + windows-32: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: microsoft/setup-msbuild@v1.3.1 + - name: Configure + run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A Win32 . + - name: Build + run: msbuild.exe acutest.sln /p:Configuration=Release /p:Platform=Win32 + + windows-64: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: microsoft/setup-msbuild@v1.3.1 + - name: Configure + run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A x64 . + - name: Build + run: msbuild.exe acutest.sln /p:Configuration=Release /p:Platform=x64 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9208219..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -# YAML definition for travis-ci.com continuous integration. -# See https://docs.travis-ci.com/user/languages/c - -# Container-based infrastructure (Linux) -# * https://docs.travis-ci.com/user/migrating-from-legacy/#How-can-I-use-container-based-infrastructure%3F -sudo: -- false - -language: c++ - -compiler: - - gcc - - clang - -env: - - CFLAGS="-std=c99 -pedantic" CONFIG=Debug # C99 - - CFLAGS="-std=c99 -pedantic" CONFIG=Release - - CFLAGS="-std=c11 -pedantic" CONFIG=Debug # C11 - - CFLAGS="-std=c11 -pedantic" CONFIG=Release - - CXXFLAGS="-std=c++11 -pedantic" CONFIG=Debug # C++11 - - CXXFLAGS="-std=c++11 -pedantic" CONFIG=Release - # Too old compilers on travis-ci.org for these: - #- CXXFLAGS="-std=c++14 -pedantic" CONFIG=Debug # C++14 - #- CXXFLAGS="-std=c++14 -pedantic" CONFIG=Release - #- CXXFLAGS="-std=c++17 -pedantic" CONFIG=Debug # C++17 - #- CXXFLAGS="-std=c++17 -pedantic" CONFIG=Release - -before_script: - - mkdir build - - cd build - - cmake -DCMAKE_BUILD_TYPE=$CONFIG -G 'Unix Makefiles' .. - -script: - - make VERBOSE=1 diff --git a/README.md b/README.md index f8ffb48..b29ba5a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -[![Linux Build Status (travis-ci.com)](https://img.shields.io/travis/mity/acutest/master.svg?logo=linux&label=linux%20build)](https://travis-ci.com/mity/acutest) -[![Windows Build Status (appveyor.com)](https://img.shields.io/appveyor/ci/mity/acutest/master.svg?logo=windows&label=windows%20build)](https://ci.appveyor.com/project/mity/acutest/branch/master) - # Acutest Readme diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index bde5e09..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,26 +0,0 @@ -# YAML definition for Appveyor.com continuous integration. -# See https://www.appveyor.com/docs/appveyor-yml - -version: '{branch}-{build}' - -before_build: - - 'cmake --version' - - 'if "%PLATFORM%"=="x64" cmake -G "Visual Studio 12 Win64" .' - - 'if not "%PLATFORM%"=="x64" cmake -G "Visual Studio 12" .' - -build: - project: Acutest.sln - verbosity: minimal - -skip_tags: true - -os: - - Windows Server 2012 R2 - -configuration: - - Debug - - Release - -platform: - - x64 # 64-bit build - - win32 # 32-bit build