Skip to content

Commit

Permalink
Revert "Evm-533 Notifications to slack about nightly builds (#1339)" (#…
Browse files Browse the repository at this point in the history
…1342)

Revert evm-533
  • Loading branch information
Nemanja0x committed Mar 28, 2023
1 parent 26118f8 commit 7b89494
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ name: Build
on: # yamllint disable-line rule:truthy
workflow_dispatch:
workflow_call:
# Map the workflow outputs to job outputs
outputs:
build_output: ${{ jobs.go_build.outputs.build_output }}

jobs:
go_build:
name: Polygon Edge
runs-on: ubuntu-latest
outputs:
build_output: ${{ steps.edge_build.outputs.build_output }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -25,8 +20,7 @@ jobs:
go-version: 1.18.x

- name: Build Polygon Edge
- id: edge_build
run: echo "build_output=$(go build -tags netgo -ldflags="-s -w -linkmode external -extldflags "-static" -X \"github.com/0xPolygon/polygon-edge/versioning.Version=${GITHUB_REF_NAME}\" -X \"github.com/0xPolygon/polygon-edge/versioning.Commit=${GITHUB_SHA}\"" && tar -czvf polygon-edge.tar.gz polygon-edge)\n" >> $GITHUB_OUTPUT
run: go build -tags netgo -ldflags="-s -w -linkmode external -extldflags "-static" -X \"github.com/0xPolygon/polygon-edge/versioning.Version=${GITHUB_REF_NAME}\" -X \"github.com/0xPolygon/polygon-edge/versioning.Commit=${GITHUB_SHA}\"" && tar -czvf polygon-edge.tar.gz polygon-edge
env:
CC: gcc
CXX: g++
Expand All @@ -47,7 +41,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Go environment
uses: actions/setup-go@v3
with:
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,42 +27,4 @@ jobs:
name: Polybft Property Tests
uses: ./.github/workflows/property-polybft.yml
needs: build

slack-notification:
name: Notify Slack
uses: slackapi/slack-github-action@v1.23.0
needs: [build, test, e2e, property]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEPLOYMENT_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "Nightly Build Results"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Build details: ${{ needs.build.outputs.build_output }}"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Workflow: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Results>"
}
},
]
}

0 comments on commit 7b89494

Please sign in to comment.