-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
using SnoopCompile | ||
|
||
# using runtests: | ||
@snoopi_bot "VideoIO" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |