From d3403444ae169c97acc033044ae23b6c7176756e Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 19 Oct 2020 12:48:38 -0400 Subject: [PATCH] Actions added. --- .github/workflows/ubuntu18.yml | 20 ++++++++++++++++++++ .github/workflows/ubuntu20.yml | 20 ++++++++++++++++++++ .github/workflows/vs16-ci.yml | 25 +++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 .github/workflows/ubuntu18.yml create mode 100644 .github/workflows/ubuntu20.yml create mode 100644 .github/workflows/vs16-ci.yml diff --git a/.github/workflows/ubuntu18.yml b/.github/workflows/ubuntu18.yml new file mode 100644 index 0000000..e1614ef --- /dev/null +++ b/.github/workflows/ubuntu18.yml @@ -0,0 +1,20 @@ +name: Ubuntu 18.04 CI (GCC 7) + +on: [push, pull_request] + +jobs: + ubuntu-build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.0 + with: + cmake-version: '3.9.x' + - name: Use cmake + run: | + mkdir build && + cd build && + cmake -DFASTFLOAT_TEST=ON .. && + cmake --build . && + ctest --output-on-failure -R basictest diff --git a/.github/workflows/ubuntu20.yml b/.github/workflows/ubuntu20.yml new file mode 100644 index 0000000..b267a5b --- /dev/null +++ b/.github/workflows/ubuntu20.yml @@ -0,0 +1,20 @@ +name: Ubuntu 20.04 CI (GCC 9) + +on: [push, pull_request] + +jobs: + ubuntu-build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.0 + with: + cmake-version: '3.9.x' + - name: Use cmake + run: | + mkdir build && + cd build && + cmake -DFASTFLOAT_TEST=ON .. && + cmake --build . && + ctest --output-on-failure -R basictest diff --git a/.github/workflows/vs16-ci.yml b/.github/workflows/vs16-ci.yml new file mode 100644 index 0000000..5a7071a --- /dev/null +++ b/.github/workflows/vs16-ci.yml @@ -0,0 +1,25 @@ +name: VS16-CI + +on: [push, pull_request] + +jobs: + ci: + name: windows-vs16 + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: 'Run CMake with VS16' + uses: lukka/run-cmake@v2 + with: + cmakeListsOrSettingsJson: CMakeListsTxtAdvanced + cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' + buildDirectory: "${{ github.workspace }}/../../_temp/windows" + cmakeBuildType: Release + buildWithCMake: true + cmakeGenerator: VS16Win64 + cmakeAppendedArgs: -DFASTFLOAT_TEST=ON + buildWithCMakeArgs: --config Release + + - name: 'Run CTest' + run: ctest -C Release --output-on-failure -R basictest + working-directory: "${{ github.workspace }}/../../_temp/windows"