File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,21 @@ commit:
2020 && echo " ::notice::git commit $( file) " \
2121 || true ;
2222
23- SWIFT_BUILD_FLAGS = -c release
24- EXECUTABLE_NAME = swift-openapi-generator
25- EXECUTABLE_PATH = $(shell swift build $(SWIFT_BUILD_FLAGS ) --show-bin-path) /$(EXECUTABLE_NAME )
26- .NOTPARALLEL : .build/bin/swift-openapi-generator
27- .build/bin/swift-openapi-generator :
23+ .INTERMEDIATE : swift-openapi-generator/.build/release/swift-openapi-generator
24+ swift-openapi-generator/.build/release/swift-openapi-generator :
2825 @echo " ::debug::make: $@ "
2926 git clone --branch 1.11.0 --single-branch \
3027 https://github.com/apple/swift-openapi-generator
31- cd swift-openapi-generator; swift build $(SWIFT_BUILD_FLAGS ) ;
32- mkdir -p $(@D ) ;
33- cp -f $(EXECUTABLE_PATH ) $@ ; \
34- rm -rf swift-openapi-generator;
28+ cd swift-openapi-generator; \
29+ swift build -c release --product swift-openapi-generator
30+
31+ .NOTPARALLEL : .build/bin/swift-openapi-generator
32+ .build/bin/swift-openapi-generator : swift-openapi-generator/.build/release/swift-openapi-generator
33+ @echo " ::debug::make: $@ "
34+ mkdir -p $(@D )
35+ cp -f $^ $@
36+ touch $@
37+ rm -rf swift-openapi-generator
3538
3639# # Generate Sources
3740
You can’t perform that action at this time.
0 commit comments