7070
7171 - name : Build CLI
7272 if : startsWith(steps.meta.outputs.app_dir, 'taco/cli')
73- working-directory : taco/cmd/taco
73+ working-directory : ${{ steps.meta.outputs.build_dir }}
7474 run : |
7575 CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
7676 -ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
7979
8080 - name : Build Statesman
8181 if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
82- working-directory : taco/cmd/statesman
82+ working-directory : ${{ steps.meta.outputs.build_dir }}
8383 run : |
8484 CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
8585 -ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
@@ -91,14 +91,14 @@ jobs:
9191 uses : actions/upload-artifact@v4
9292 with :
9393 name : taco-cli-${{ matrix.os }}-${{ matrix.arch }}
94- path : taco/cmd/taco /taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
94+ path : ${{ steps.meta.outputs.build_dir }} /taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
9595
9696 - name : Upload Statesman artifacts
9797 if : startsWith(steps.meta.outputs.app_dir, 'taco/statesman')
9898 uses : actions/upload-artifact@v4
9999 with :
100100 name : taco-statesman-${{ matrix.os }}-${{ matrix.arch }}
101- path : taco/cmd/statesman /statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
101+ path : ${{ steps.meta.outputs.build_dir }} /statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
102102
103103 build-docker :
104104 if : startsWith(github.ref_name, 'taco/statesman/')
0 commit comments