From 3633d92d953827bc6d07864590a7724e0047ed8f Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 2 May 2021 22:21:50 +0300 Subject: [PATCH 1/7] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 00000000..61ae9b4c --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,21 @@ +name: C CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: init submodule + run: git submodule update --init --recursive + - name: make + run: make + - name: make test + run: make test From b04a06e4ae2f21bfd79f259f305d19ef267ce7b9 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 2 May 2021 22:24:09 +0300 Subject: [PATCH 2/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 61ae9b4c..8a6a4934 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,5 +17,10 @@ jobs: run: git submodule update --init --recursive - name: make run: make + - name: install redis + run: | + sudo add-apt-repository ppa:redislabs/redis + sudo apt-get update + sudo apt-get install redis - name: make test run: make test From 1c43fed0a6d87a0c964a7c02be79ec7f4bab79a2 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 2 May 2021 22:26:09 +0300 Subject: [PATCH 3/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8a6a4934..0f6e9620 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -23,4 +23,6 @@ jobs: sudo apt-get update sudo apt-get install redis - name: make test - run: make test + run: | + make setup + make test From b9829c7a3af09154aec56a7fdb08e5c0852cc9b6 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 2 May 2021 22:35:47 +0300 Subject: [PATCH 4/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 0f6e9620..6aed7f7e 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -22,7 +22,9 @@ jobs: sudo add-apt-repository ppa:redislabs/redis sudo apt-get update sudo apt-get install redis - - name: make test + - name: install deps run: | - make setup - make test + ./deps/readies/bin/getpy3 + ./system-setup.py + - name: make test + run: make test From d48953035819b30dae6adc62b4058489e14939af Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Sun, 2 May 2021 22:37:11 +0300 Subject: [PATCH 5/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6aed7f7e..6fc220b1 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -24,7 +24,7 @@ jobs: sudo apt-get install redis - name: install deps run: | - ./deps/readies/bin/getpy3 - ./system-setup.py + sudo ./deps/readies/bin/getpy3 + sudo ./system-setup.py - name: make test run: make test From 72b3766f3c4683ff0b812f9d9d5fa501147329b8 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Mon, 3 May 2021 19:02:42 +0300 Subject: [PATCH 6/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6fc220b1..5d6f2946 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,8 +8,10 @@ on: jobs: build: - - runs-on: ubuntu-latest + runs-on: ${{ matix.os }} + strategy: + matrix: + os: [ubuntu-latest, ubuntu-20.04, ubuntu-18.04] steps: - uses: actions/checkout@v2 From f62eb9e9ec16f90e47284e042a3b0aa40daaf818 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Mon, 3 May 2021 19:03:25 +0300 Subject: [PATCH 7/7] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 5d6f2946..5896fd91 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ${{ matix.os }} + runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, ubuntu-20.04, ubuntu-18.04]