CICD: Fix RPM repository updating (#5790) #94
This file contains 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/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Determine Go version | |
id: go_version | |
run: echo "GO_VERSION=$(./scripts/get_golang_version.sh)" >> $GITHUB_ENV | |
- name: Install golang | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Restore libsodium from cache | |
id: cache-libsodium | |
uses: actions/[email protected] | |
with: | |
path: crypto/libs | |
key: libsodium-fork-v2-${{ runner.os }}-${{ 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')) }} |