From 8fee984b94d55ad234fd46c39fc979f1a075c6c8 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Thu, 4 Mar 2021 17:57:49 +0530 Subject: [PATCH 1/6] Create build.yml --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..52233353 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + env: + GO111MODULE: on + TARGET: amd64 + + strategy: +# max-parallel: 2 + matrix: + go-version: [1.12.x, 1.13.x] + os: [ubuntu-16.04, ubuntu-18.04, ubuntu-latest] + + runs-on: ${{ matrix.os }} + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout project + uses: actions/checkout@v2 + + - name: Clone API project + run: go get github.com/sodafoundation/api + + - name: Prerequites packages on ubuntu-16.04 + run: sudo apt-get update && sudo apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk build-essential gcc librados-dev librbd-dev + + - name: Build + # Build OpenSDS Controller source code + run: make all + + - name: Run CI scripts for Testing + run: ./install/CI/coverage && ./install/CI/test + + - name: After success run Codecov Coverage tool. + run: bash <(curl -s https://codecov.io/bash) From 0d5a38acdee032a47dd0e20bcdd921221f189e59 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Thu, 11 Mar 2021 02:41:00 +0530 Subject: [PATCH 2/6] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52233353..c37085d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: # max-parallel: 2 matrix: go-version: [1.12.x, 1.13.x] - os: [ubuntu-16.04, ubuntu-18.04, ubuntu-latest] + os: [ubuntu-18.04, ubuntu-latest] runs-on: ${{ matrix.os }} steps: @@ -31,7 +31,7 @@ jobs: - name: Clone API project run: go get github.com/sodafoundation/api - - name: Prerequites packages on ubuntu-16.04 + - name: Prerequites packages run: sudo apt-get update && sudo apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk build-essential gcc librados-dev librbd-dev - name: Build From a71168d8cda034e88c89b72c4cd9c736efbcaa29 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Thu, 11 Mar 2021 02:47:25 +0530 Subject: [PATCH 3/6] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c37085d9..aeaeb497 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: strategy: # max-parallel: 2 matrix: - go-version: [1.12.x, 1.13.x] + go-version: [1.13.x, 1.16.x] os: [ubuntu-18.04, ubuntu-latest] runs-on: ${{ matrix.os }} From 6757d03a3b6d5711f64a8f8dbbd2d23304a15689 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Thu, 11 Mar 2021 02:58:28 +0530 Subject: [PATCH 4/6] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aeaeb497..a6d932d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: strategy: # max-parallel: 2 matrix: - go-version: [1.13.x, 1.16.x] + go-version: [1.13.x] os: [ubuntu-18.04, ubuntu-latest] runs-on: ${{ matrix.os }} From 111f13ebf5af9a7e30e2f080641ec7beddf707e5 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Thu, 11 Mar 2021 03:00:33 +0530 Subject: [PATCH 5/6] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6d932d8..0c17f3da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk build-essential gcc librados-dev librbd-dev - name: Build - # Build OpenSDS Controller source code + # Build SODA Controller source code run: make all - name: Run CI scripts for Testing From 1fd886cf7f99b94f6d5c9343d0dafedbf83b55d5 Mon Sep 17 00:00:00 2001 From: ryo-osive <63479117+ryo-osive@users.noreply.github.com> Date: Mon, 15 Mar 2021 21:09:35 +0530 Subject: [PATCH 6/6] Fixed typo --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c17f3da..771e2475 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: CI Build on: push: @@ -31,11 +31,11 @@ jobs: - name: Clone API project run: go get github.com/sodafoundation/api - - name: Prerequites packages + - name: Install Pre-requisites run: sudo apt-get update && sudo apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk build-essential gcc librados-dev librbd-dev - name: Build - # Build SODA Controller source code + # Build SODA Dock source code run: make all - name: Run CI scripts for Testing