Skip to content

Commit

Permalink
version 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
yume190 committed Sep 7, 2023
1 parent c998ff7 commit c51e378
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 7 deletions.
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
VERSION = 0.0.4
VERSION = 0.0.5

include CodeQL.mk

.PHONY: githubRelease
githubRelease:
.PHONY: updateVersion
updateVersion:
sed -i '' 's|\(version: "\)\(.*\)\("\)|\1$(VERSION)\3|' Sources/LeakDetect/Command.swift
sed -i '' 's|\(download\/\)\(.*\)\(\/\)|\1$(VERSION)\3|' action.yml
sed -i '' 's|\(LeakDetect@\)\(.*\)|\1$(VERSION)|' README.md
sed -i '' 's|\(LeakDetect@\)\(.*\)|\1$(VERSION)|' README_ZH.md

.PHONY: githubRelease
githubRelease: updateVersion
git add Sources/LeakDetect/Command.swift
git add action.yml
git add Makefile

git commit -m "Update to $(VERSION)"
Expand Down Expand Up @@ -63,12 +69,12 @@ graph:
single:
leakDetect \
--sdk macosx \
--file fixture/temp.swift
--file fixture/temp.swift \
--reporter

# git clone https://github.com/antranapp/LeakDetector
.PHONY: proj
proj:
# git clone https://github.com/antranapp/LeakDetector

leakDetect \
--module LeakDetectorDemo \
--file LeakDetector/LeakDetectorDemo.xcworkspace
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,38 @@ leakDetect \
leakDetect \
--module "SCHEME NAME" \
--file Sample.xcodeproj

# spm
leakDetect \
--module TARGET_NAME \
--file .

# file
leakDetect \
--sdk macosx \
--file xxx.swift
```

## Usage(Github Action)

```yaml
jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: yume190/[email protected]
with:
# https://github.com/antranapp/LeakDetector
module: LeakDetectorDemo
file: LeakDetectorDemo.xcworkspace
token: ${{secrets.GITHUB_TOKEN}}
```
### Mode
#### [Assign](LeakDetectKit/Assign/AssignClosureVisitor.swift)
Detect assign instance function.
Expand Down
20 changes: 20 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,26 @@ leakDetect \
--file xxx.swift
```

## Usage(Github Action)

```yaml
jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: yume190/[email protected]
with:
# https://github.com/antranapp/LeakDetector
module: LeakDetectorDemo
file: LeakDetectorDemo.xcworkspace
token: ${{secrets.GITHUB_TOKEN}}
```
### Mode
#### [Assign](LeakDetectKit/Assign/AssignClosureVisitor.swift)
偵測 assign `instance function`.
Expand Down
2 changes: 1 addition & 1 deletion Sources/LeakDetect/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct Command: AsyncParsableCommand {
leakDetect --module LeakDetectorDemo --file LeakDetectorDemo.xcworkspace
""",
version: "0.0.4"
version: "0.0.5"
)

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

0 comments on commit c51e378

Please sign in to comment.