File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ jobs:
1919 with :
2020 go-version : 1.22.x
2121
22- - name : Build
22+ - name : Build API and Import Scripts
2323 run : |
2424 make build_amd
2525 make build_arm
26+ make build_import_amd
27+ make build_import_arm
2628
2729 - name : Unit Test
2830 run : make unit_test
3941 files : |
4042 target/scanoss-folder-hashing-api-linux-amd64
4143 target/scanoss-folder-hashing-api-linux-arm64
44+ target/scanoss-hfh-import-linux-amd64
45+ target/scanoss-hfh-import-linux-arm64
4246 scanoss-folder-hashing-api_linux-amd64_${{ github.ref_name }}-1.tgz
4347 scanoss-folder-hashing-api_linux-arm64_${{ github.ref_name }}-1.tgz
4448
Original file line number Diff line number Diff line change @@ -108,13 +108,23 @@ ghcr_all: ghcr_build ghcr_push ## Execute all GitHub Package container actions
108108# Binary Building (for local development)
109109build_amd : # # Build an AMD 64 binary
110110 @echo " Building AMD binary $( VERSION) ..."
111- @mkdir -p ./dist
112- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags=" -w -s -X github.com/scanoss/folder-hashing-api/internal/domain/entities.AppVersion=$( VERSION) " -o ./dist /scanoss-hfh- api ./cmd/server
111+ @mkdir -p ./target
112+ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags=" -w -s -X github.com/scanoss/folder-hashing-api/internal/domain/entities.AppVersion=$( VERSION) " -o ./target /scanoss-folder-hashing- api-linux-amd64 ./cmd/server
113113
114114build_arm : # # Build an ARM 64 binary
115115 @echo " Building ARM binary $( VERSION) ..."
116- @mkdir -p ./dist
117- GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags=" -w -s -X github.com/scanoss/folder-hashing-api/internal/domain/entities.AppVersion=$( VERSION) " -o ./dist/scanoss-hfh-api ./cmd/server
116+ @mkdir -p ./target
117+ GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags=" -w -s -X github.com/scanoss/folder-hashing-api/internal/domain/entities.AppVersion=$( VERSION) " -o ./target/scanoss-folder-hashing-api-linux-arm64 ./cmd/server
118+
119+ build_import_amd : # # Build import script for AMD64
120+ @echo " Building import script for AMD64 $( VERSION) ..."
121+ @mkdir -p ./target
122+ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags=" -w -s -X main.Version=$( VERSION) " -o ./target/scanoss-hfh-import-linux-amd64 ./cmd/import
123+
124+ build_import_arm : # # Build import script for ARM64
125+ @echo " Building import script for ARM64 $( VERSION) ..."
126+ @mkdir -p ./target
127+ GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags=" -w -s -X main.Version=$( VERSION) " -o ./target/scanoss-hfh-import-linux-arm64 ./cmd/import
118128
119129# Docker Package Creation
120130package : docker_package_amd # # Create Docker distribution package (AMD64)
You can’t perform that action at this time.
0 commit comments