From 3e38d76fe5be64dda7f863e4e4b19be7b3f71b5c Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:45:59 -0800 Subject: [PATCH 1/7] Create cmake.yml --- .github/workflows/cmake.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..a863c42 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,25 @@ +# cmake +name: cmake + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: boost + run: sudo apt-get ragel -yq + # && sudo apt-get install -yq libboost1.65-dev + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.8 + with: + cmake-version: '3.16.x' + - name: cmake + run: | + mkdir -p build + cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release + cd build + make + make install From 0962572da2d2f54923359cd6c4c67cd881bcd584 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:50:43 -0800 Subject: [PATCH 2/7] fix: cmake --- .github/workflows/cmake.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a863c42..b63d5d0 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -8,18 +8,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - name: boost - run: sudo apt-get ragel -yq + - run: | + sudo apt-get ragel -yq # && sudo apt-get install -yq libboost1.65-dev - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1.8 with: cmake-version: '3.16.x' - - name: cmake + + - name: cmake build + - name: Install Dependencies run: | - mkdir -p build - cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release - cd build - make - make install + mkdir -p build + cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release + cd build + make + make install From a315f90e86ce1b5fd072bd2b4b6598a041b41e6d Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:51:41 -0800 Subject: [PATCH 3/7] Update cmake.yml --- .github/workflows/cmake.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index b63d5d0..b86f30a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -19,7 +19,6 @@ jobs: cmake-version: '3.16.x' - name: cmake build - - name: Install Dependencies run: | mkdir -p build cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release From 6ce92f99fd575cb85a3fbafe3e12c05583d1e069 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:53:25 -0800 Subject: [PATCH 4/7] Update cmake.yml --- .github/workflows/cmake.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index b86f30a..c5f7703 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -8,7 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: boost - run: | sudo apt-get ragel -yq @@ -17,11 +20,9 @@ jobs: uses: jwlawson/actions-setup-cmake@v1.8 with: cmake-version: '3.16.x' - - - name: cmake build - run: | - mkdir -p build - cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release - cd build - make - make install + run: | + mkdir -p build + cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release + cd build + make + make install From dcc26716101243d53055629db76fd4dec281d581 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:54:04 -0800 Subject: [PATCH 5/7] Update cmake.yml --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c5f7703..a362682 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -13,7 +13,7 @@ jobs: with: fetch-depth: 0 - name: boost - - run: | + run: | sudo apt-get ragel -yq # && sudo apt-get install -yq libboost1.65-dev - name: Setup cmake From 3aa26a3f9a883af3708f75c4d4a8eb94a349fa8e Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:55:01 -0800 Subject: [PATCH 6/7] Update cmake.yml --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index a362682..45c0459 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -14,7 +14,7 @@ jobs: fetch-depth: 0 - name: boost run: | - sudo apt-get ragel -yq + sudo apt-get update && sudo apt-get install ragel -yq # && sudo apt-get install -yq libboost1.65-dev - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1.8 From ab5103fc25de4261044c865a5289ae3a2c1bd741 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 7 Mar 2021 20:56:54 -0800 Subject: [PATCH 7/7] Update cmake.yml --- .github/workflows/cmake.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 45c0459..6d0654f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: boost + - name: Ragel Setup run: | sudo apt-get update && sudo apt-get install ragel -yq # && sudo apt-get install -yq libboost1.65-dev @@ -20,7 +20,8 @@ jobs: uses: jwlawson/actions-setup-cmake@v1.8 with: cmake-version: '3.16.x' - run: | + - name: CMake Build + run: | mkdir -p build cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release cd build