diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f0dd70a2..4a9d10ae7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,21 +21,23 @@ jobs: matrix: go-arch: ["amd64"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "^1.21" - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff + - uses: dorny/paths-filter@v3 + id: filter with: - PATTERNS: | - **/*.go - go.mod - go.sum - **/go.mod - **/go.sum - **/Makefile - Makefile + filters: | + go: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - '**/go.mod' + - '**/go.sum' + - '**/Makefile' + - 'Makefile' + - name: Build - if: env.GIT_DIFF + if: steps.filter.outputs.go == 'true' run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build