[Compiler] Fix closure var capturing inside loops #6746
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: Downstream dependencies | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'feature/**' | |
| - 'v**' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'feature/**' | |
| - 'v**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| flow-go: | |
| name: flow-go | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'onflow/flow-go' | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Update Cadence | |
| run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }} | |
| - name: Tidy up | |
| run: go mod tidy | |
| - name: Build | |
| run: go build -v ./... | |
| flow-emulator: | |
| name: Emulator | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'onflow/flow-emulator' | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Update Cadence | |
| run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }} | |
| - name: Tidy up | |
| run: go mod tidy | |
| - name: Build | |
| run: go build -v ./... |