From 9f8f87012ace91dcdd883859fae5b37c11f45a6b Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:25:42 +0900 Subject: [PATCH 1/6] feat: make artifact for dev-ci --- .github/workflows/dev-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index df9f049e80aa..a38ed5030d9d 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -19,9 +19,21 @@ jobs: go-version: 1.19 - name: Build Go-WEMIX - run: make gwemix.tar.gz - - name: Check Build - run: ls -al build/gwemix.tar.gz + run: USE_ROCKSDB=YES make gwemix.tar.gz + + - name: Stat Go-WEMIX + run: | + ls -l build/gwemix.tar.gz + tar tf build/gwemix.tar.gz + - name: Move results to artifact + run: mv build/gwemix.tar.gz gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz + + - name: Upload Go-WEMIX + uses: actions/upload-artifact@v4 + with: + name: artifact-${{ github.event.pull_request.head.sha }} + path: gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz + retention-days: 7 lint_test: strategy: From cb117c3f6a6d4ecd8fbcc07309ac52c41de95576 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:26:31 +0900 Subject: [PATCH 2/6] feat: make artifact for master-ci --- .github/workflows/master-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master-ci.yml b/.github/workflows/master-ci.yml index 46736e268895..043664d41fdb 100644 --- a/.github/workflows/master-ci.yml +++ b/.github/workflows/master-ci.yml @@ -19,9 +19,21 @@ jobs: go-version: 1.19 - name: Build Go-WEMIX - run: make gwemix.tar.gz - - name: Check Build - run: ls -al build/gwemix.tar.gz + run: USE_ROCKSDB=YES make gwemix.tar.gz + + - name: Stat Go-WEMIX + run: | + ls -l build/gwemix.tar.gz + tar tf build/gwemix.tar.gz + - name: Move results to artifact + run: mv build/gwemix.tar.gz gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz + + - name: Upload Go-WEMIX + uses: actions/upload-artifact@v4 + with: + name: artifact-${{ github.event.pull_request.head.sha }} + path: gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz + retention-days: 7 lint_test: strategy: From 376fc608b849f396ec061b75140b7b282a3d1e1c Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:56:08 +0900 Subject: [PATCH 3/6] feat: make artifact during ci --- .github/workflows/artifacts.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/artifacts.yml diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 000000000000..86aea2b69c79 --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,38 @@ +name: artifacts + +on: + push: + branches: + - devnet + - dev + - master + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.19' + + - name: Build Go-WEMIX tarball + run: USE_ROCKSDB=YES make gwemix.tar.gz + + - name: Stat Go-WEMIX tarball + run: | + ls -l build/gwemix.tar.gz + tar tf build/gwemix.tar.gz + + - name: Move results to artifact + run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-rocksdb.tar.gz + + - name: Upload Go-WEMIX + uses: actions/upload-artifact@v4 + with: + name: artifact-${{ github.ref_name }}-${{ github.sha }} + path: gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-rocksdb.tar.gz + retention-days: 7 From 782779ff6f150988ef763896122d16e7b1cbf038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=84=9D=EC=9A=A9=28WM=29?= Date: Mon, 3 Jun 2024 14:00:25 +0900 Subject: [PATCH 4/6] Revert "feat: make artifact for dev-ci" This reverts commit 9f8f87012ace91dcdd883859fae5b37c11f45a6b. --- .github/workflows/dev-ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index a38ed5030d9d..df9f049e80aa 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -19,21 +19,9 @@ jobs: go-version: 1.19 - name: Build Go-WEMIX - run: USE_ROCKSDB=YES make gwemix.tar.gz - - - name: Stat Go-WEMIX - run: | - ls -l build/gwemix.tar.gz - tar tf build/gwemix.tar.gz - - name: Move results to artifact - run: mv build/gwemix.tar.gz gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz - - - name: Upload Go-WEMIX - uses: actions/upload-artifact@v4 - with: - name: artifact-${{ github.event.pull_request.head.sha }} - path: gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz - retention-days: 7 + run: make gwemix.tar.gz + - name: Check Build + run: ls -al build/gwemix.tar.gz lint_test: strategy: From 8f0d9e1cd1f043afe694467b46f924fbe89ed61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=84=9D=EC=9A=A9=28WM=29?= Date: Mon, 3 Jun 2024 14:00:34 +0900 Subject: [PATCH 5/6] Revert "feat: make artifact for master-ci" This reverts commit cb117c3f6a6d4ecd8fbcc07309ac52c41de95576. --- .github/workflows/master-ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/master-ci.yml b/.github/workflows/master-ci.yml index 043664d41fdb..46736e268895 100644 --- a/.github/workflows/master-ci.yml +++ b/.github/workflows/master-ci.yml @@ -19,21 +19,9 @@ jobs: go-version: 1.19 - name: Build Go-WEMIX - run: USE_ROCKSDB=YES make gwemix.tar.gz - - - name: Stat Go-WEMIX - run: | - ls -l build/gwemix.tar.gz - tar tf build/gwemix.tar.gz - - name: Move results to artifact - run: mv build/gwemix.tar.gz gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz - - - name: Upload Go-WEMIX - uses: actions/upload-artifact@v4 - with: - name: artifact-${{ github.event.pull_request.head.sha }} - path: gwemix-${{ github.event.pull_request.head.sha }}-linux-amd64-rocksdb.tar.gz - retention-days: 7 + run: make gwemix.tar.gz + - name: Check Build + run: ls -al build/gwemix.tar.gz lint_test: strategy: From cec95f56fa39bc538dd2ff0facb96a28d7afd4e8 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:09:03 +0900 Subject: [PATCH 6/6] fix: use default retention-days and ignore dev branch --- .github/workflows/artifacts.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 86aea2b69c79..527a85885a3e 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -4,7 +4,6 @@ on: push: branches: - devnet - - dev - master jobs: @@ -35,4 +34,3 @@ jobs: with: name: artifact-${{ github.ref_name }}-${{ github.sha }} path: gwemix-${{ github.ref_name }}-${{ github.sha }}-linux-amd64-rocksdb.tar.gz - retention-days: 7