Skip to content

Commit

Permalink
Merge d2a0ade into 24f96ab
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Mar 15, 2020
2 parents 24f96ab + d2a0ade commit 66c29f0
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/SnoopCompile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SnoopCompile

on:
- push


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.4.0-rc1'] # using 1.4 and higher is better
julia-arch: [x64]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia --project -e 'using Pkg; Pkg.instantiate();'
- name : Add SnoopCompile and current package
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update precompile_*.jl file
committer: YOUR NAME <yourEmail@something.com> # Change `committer` to your name and your email.
title: '[AUTO] Update precompile_*.jl file'
labels: SnoopCompile
branch: create-pull-request/SnoopCompile
- name: Check output environment variable
run: echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
3 changes: 3 additions & 0 deletions deps/SnoopCompile/snoopBenchmark.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using SnoopCompile
println("loading infer benchmark")
@snoopi_bench "VideoIO" using VideoIO
4 changes: 4 additions & 0 deletions deps/SnoopCompile/snoopCompile.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using SnoopCompile

# using runtests:
@snoopi_bot "VideoIO"
2 changes: 2 additions & 0 deletions src/VideoIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,7 @@ function __init__()
end
end

# include("../deps/SnoopCompile/precompile/precompile_VideoIO.jl")
# _precompile_()

end # VideoIO
6 changes: 6 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 comments on commit 66c29f0

Please sign in to comment.