From 85397edff0bf70aeeecf5313247c483433e01efc Mon Sep 17 00:00:00 2001 From: chris erway Date: Mon, 15 Aug 2022 11:37:58 -0400 Subject: [PATCH 1/4] first draft of GHA codegen_verification --- .github/workflows/codegen_verification.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/codegen_verification.yml diff --git a/.github/workflows/codegen_verification.yml b/.github/workflows/codegen_verification.yml new file mode 100644 index 0000000000..7ea60640c8 --- /dev/null +++ b/.github/workflows/codegen_verification.yml @@ -0,0 +1,20 @@ +name: "codegen verification" +on: + pull_request: +jobs: + codegen_verification: + runs-on: ubuntu-20.04 + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + path: go-algorand + - name: Install libraries + run: sudo apt-get -y -q install libboost-math-dev + - name: Uninstall existing go installation + run: sudo apt-get -y -q purge golang-go + - name: Run codegen_verification.sh + run: | + export GOPATH="${GITHUB_WORKSPACE}/go" + cd go-algorand + scripts/travis/codegen_verification.sh From 1ccf49f70eb31ff7def8b09ead04058f1d6702a6 Mon Sep 17 00:00:00 2001 From: chris erway Date: Mon, 15 Aug 2022 11:47:46 -0400 Subject: [PATCH 2/4] set depth 0 so that git commands used by codegen_verification work --- .github/workflows/codegen_verification.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codegen_verification.yml b/.github/workflows/codegen_verification.yml index 7ea60640c8..07327b16d4 100644 --- a/.github/workflows/codegen_verification.yml +++ b/.github/workflows/codegen_verification.yml @@ -8,6 +8,7 @@ jobs: - name: Check out code uses: actions/checkout@v3 with: + fetch-depth: 0 path: go-algorand - name: Install libraries run: sudo apt-get -y -q install libboost-math-dev From 0d5ad7e2be5c0e8984936642d36e8c01e189ad2f Mon Sep 17 00:00:00 2001 From: chris erway Date: Mon, 15 Aug 2022 17:23:20 -0400 Subject: [PATCH 3/4] remove codegen_verification job from CircleCI --- .circleci/config.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e04193f4a0..904c75f96c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,8 +64,6 @@ workflows: version: 2 "circleci_build_and_test": jobs: - - codegen_verification - - build: name: << matrix.platform >>_build matrix: &matrix-default @@ -179,7 +177,6 @@ workflows: - << matrix.platform >>_integration_nightly_verification - << matrix.platform >>_e2e_expect_nightly_verification - << matrix.platform >>_e2e_subs_nightly - - codegen_verification filters: branches: only: @@ -483,16 +480,6 @@ commands: scripts/travis/test_release.sh jobs: - codegen_verification: - executor: amd64_medium - steps: - - checkout - - prepare_go - - run: | - export PATH=$(echo "$PATH" | sed -e 's|:/home/circleci/\.go_workspace/bin||g' | sed -e 's|:/usr/local/go/bin||g') - export GOPATH="/home/circleci/go" - scripts/travis/codegen_verification.sh - build: parameters: platform: From 52f02f5cc2b87b5044f28a8314c5a0d5185107af Mon Sep 17 00:00:00 2001 From: chris erway Date: Tue, 16 Aug 2022 11:32:39 -0400 Subject: [PATCH 4/4] remove unnecessary apt-get install step --- .github/workflows/codegen_verification.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/codegen_verification.yml b/.github/workflows/codegen_verification.yml index 07327b16d4..cff22d11d4 100644 --- a/.github/workflows/codegen_verification.yml +++ b/.github/workflows/codegen_verification.yml @@ -10,8 +10,6 @@ jobs: with: fetch-depth: 0 path: go-algorand - - name: Install libraries - run: sudo apt-get -y -q install libboost-math-dev - name: Uninstall existing go installation run: sudo apt-get -y -q purge golang-go - name: Run codegen_verification.sh