1 год назад
Родитель
Сommit
8d390dae50
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .github/workflows/test.yml

+ 2 - 2
.github/workflows/test.yml

@@ -44,9 +44,9 @@ jobs:
44
       - name: Build for ${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.go_variant }}
44
       - name: Build for ${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.go_variant }}
45
         run: |
45
         run: |
46
           if [ "${{ matrix.go_variant }}" = "alpine" ]; then
46
           if [ "${{ matrix.go_variant }}" = "alpine" ]; then
47
-            GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 CC=/usr/bin/gcc go build -ldflags "-s -w" -o myapp-alpine-${{ matrix.goos }}-${{ matrix.goarch }} .
47
+            GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 CC=/usr/bin/gcc go build -ldflags "-s -w" -o myapp-alpine-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/apimain.go
48
           else
48
           else
49
-            GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 go build -o myapp-${{ matrix.goos }}-${{ matrix.goarch }} .
49
+            GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=1 go build -o myapp-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/apimain.go
50
           fi
50
           fi
51
 
51
 
52
       - name: Upload artifact
52
       - name: Upload artifact