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:
19
19
with :
20
20
go-version : 1.22.x
21
21
22
- - name : Build
22
+ - name : Build API and Import Scripts
23
23
run : |
24
24
make build_amd
25
25
make build_arm
26
+ make build_import_amd
27
+ make build_import_arm
26
28
27
29
- name : Unit Test
28
30
run : make unit_test
39
41
files : |
40
42
target/scanoss-folder-hashing-api-linux-amd64
41
43
target/scanoss-folder-hashing-api-linux-arm64
44
+ target/scanoss-hfh-import-linux-amd64
45
+ target/scanoss-hfh-import-linux-arm64
42
46
scanoss-folder-hashing-api_linux-amd64_${{ github.ref_name }}-1.tgz
43
47
scanoss-folder-hashing-api_linux-arm64_${{ github.ref_name }}-1.tgz
44
48
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
108
108
# Binary Building (for local development)
109
109
build_amd : # # Build an AMD 64 binary
110
110
@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
113
113
114
114
build_arm : # # Build an ARM 64 binary
115
115
@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
118
128
119
129
# Docker Package Creation
120
130
package : docker_package_amd # # Create Docker distribution package (AMD64)
You can’t perform that action at this time.
0 commit comments