network: handle p2p addr expiration in ReplacePeerList (#6518) #618
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build Windows" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build-windows: | |
| runs-on: windows-2022 | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| steps: | |
| - name: Install msys2 | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| update: true | |
| path-type: inherit | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: ./.github/actions/setup-go | |
| - name: Restore libsodium from cache | |
| id: cache-libsodium | |
| uses: actions/cache@v4 | |
| with: | |
| path: crypto/libs | |
| key: libsodium-fork-v2-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('crypto/libsodium-fork/**') }} | |
| - name: Build | |
| run: | | |
| export ALGORAND_DEADLOCK=enable | |
| export SKIP_GO_INSTALLATION=True | |
| scripts/travis/build_test.sh | |
| # - name: Upload artifact to Github | |
| # uses: actions/upload-artifact@v2 | |
| # with: | |
| # if-no-files-found: error | |
| # path: $(git ls-files -o | grep -v crypto/libs | grep -v crypto/copies | grep -v crypto/libsodium-fork | grep -v crypto/lib/ | grep -v ^gen/ | grep -v swagger.json.validated | tr "\n" ":") | |
| - name: Slack Notification | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| run: | | |
| curl -X POST --data-urlencode "payload={\"text\": \"Build windows failed. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}" $SLACK_WEBHOOK | |
| if: ${{ failure() && (contains(github.ref_name, 'rel/nightly') || contains(github.ref_name, 'rel/beta') || contains(github.ref_name, 'rel/stable') || contains(github.ref_name, 'master')) }} |