Skip to content

Commit

Permalink
Update SnoopCompile bot
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 14, 2020
1 parent 5d2a9b2 commit 32452b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/SnoopCompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia --project=@. -e 'using Pkg; Pkg.instantiate();'
run: julia --project -e 'using Pkg; Pkg.instantiate();'
- name : Add SnoopCompile and current package
run: julia -e 'using Pkg; Pkg.add(PackageSpec(url = "https://github.com/aminya/SnoopCompile.jl", rev ="packageSnooper")); Pkg.develop(PackageSpec(; path=pwd()));'
# - name: Install Test dependencies
# run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()'
run: julia -e 'using Pkg; Pkg.add("SnoopCompile"); Pkg.develop(PackageSpec(; path=pwd()));'
- name: Install Test dependencies
run: julia -e 'using SnoopCompile; SnoopCompile.addtestdep()'
- name: Generating precompile files
run: julia --project=@. -e 'include("deps/SnoopCompile/snoopCompile.jl")'
- name: Running Benchmark
run: julia --project=@. -e 'include("deps/SnoopCompile/snoopBenchmark.jl")'

# https://github.com/marketplace/actions/create-pull-request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2-beta
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update precompile_*.jl file
Expand Down
8 changes: 5 additions & 3 deletions deps/SnoopCompile/snoopBenchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ using SnoopCompile

println("loading infer benchmark")

@snoopiBenchBot "MatLang" using MatLang
@snoopiBench "MatLang" using MatLang


println("examples infer benchmark")

@snoopiBenchBot "MatLang" begin
@snoopiBench "MahtLang" begin
using MatLang
examplePath = joinpath(dirname(dirname(pathof(MatLang))), "examples")
# include(joinpath(examplePath,"Language_Fundamentals", "usage_Entering_Commands.jl"))
Expand All @@ -16,4 +16,6 @@ println("examples infer benchmark")
end


@snoopiBenchBot "MatLang"
println("tests infer benchmark")

@snoopiBench "MatLang"

0 comments on commit 32452b1

Please sign in to comment.