Skip to content

Commit

Permalink
Update to 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yume190 committed Aug 25, 2023
1 parent b2dd210 commit e7b6e32
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CodeQL.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
db:
-rm -Rf swiftdb
-rm -Rf .build
swift package clean
codeql database create \
--language=swift \
--source-root . \
--search-path=/Users/yume/git/codeql/swift/extractor-pack \
--command="swift build" \
swiftdb

analyze:
codeql database \
analyze swiftdb \
--format=sarifv2.1.0 \
--output=out/xxx.sarif \
/Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-code-scanning.qls \
/Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-security-and-quality.qls \
/Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-security-extended.qls
20 changes: 18 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
VERSION = 0.0.1
VERSION = 0.0.4

include CodeQL.mk

.PHONY: githubRelease
githubRelease:
sed -i '' 's|\(version: "\)\(.*\)\("\)|\1$(VERSION)\3|' Sources/LeakDetect/Command.swift

git add Sources/LeakDetect/Command.swift
git add Makefile

git commit -m "Update to $(VERSION)"
git tag $(VERSION)
git push origin $(VERSION)

.PHONY: build
build:
Expand All @@ -13,7 +26,10 @@ test: build
.PHONY: release
release:
@swift build -c release
# @swift build -c release --arch arm64 --arch x86_64

.PHONY: releaseAll
releaseAll:
@swift build -c release --arch arm64 --arch x86_64

.PHONY: install
install: release
Expand Down
2 changes: 1 addition & 1 deletion Sources/LeakDetect/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct Command: ParsableCommand {
--targetType xcworkspace \
--file LeakDetectorDemo.xcworkspace
""",
version: "0.0.3"
version: "0.0.4"
)

@Flag(name: [.customLong("verbose", withSingleDash: false), .short], help: "print inpect time")
Expand Down

0 comments on commit e7b6e32

Please sign in to comment.