Skip to content

Commit

Permalink
Merge pull request #58 from Oblynx/update-ci
Browse files Browse the repository at this point in the history
Update CI 1.6
  • Loading branch information
Oblynx authored Aug 31, 2021
2 parents 1262123 + 2cac22a commit 9a52d3e
Show file tree
Hide file tree
Showing 19 changed files with 849 additions and 1,363 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
name: CompatHelper
on:
schedule:
- cron: '00 00 * * *'
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
- name: "Add the General registry via Git"
run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
shell: julia --color=yes {0}
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "3"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main(include_jll=true, bump_version=true)
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} # optional
run: julia -e 'using CompatHelper; CompatHelper.main()'
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
7 changes: 5 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: TagBot
on:
schedule:
- cron: 0 0 * * *
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1.5
version: 1.6
- uses: julia-actions/julia-buildpkg@latest
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"'
# Pin Parsers < 2.0 to fix https://github.com/JuliaData/CSV.jl/issues/868
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1 Parsers@1.1.2"'
- name: Run benchmarks
run: julia -e '
using PkgBenchmark, BenchmarkCI;
Expand All @@ -26,13 +28,13 @@ jobs:
);'
- name: Show
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'
- name: Push results
run: julia -e '
using BenchmarkCI;
BenchmarkCI.postjudge();
BenchmarkCI.pushresult(;
url = "git@github.com:Oblynx/HierarchicalTemporalMemory.jl",
);'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DOCUMENTER_KEY }}
#- name: Push results
# run: julia -e '
# using BenchmarkCI;
# BenchmarkCI.postjudge();
# BenchmarkCI.pushresult(;
# url = "git@github.com:Oblynx/HierarchicalTemporalMemory.jl",
# );'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SSH_KEY: ${{ secrets.DOCUMENTER_KEY }}
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: CI
on:
- push
- pull_request
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
version:
- '1.5'
- '1.6'
#- 'nightly'
os:
- ubuntu-latest
- windows-latest
Expand Down Expand Up @@ -45,7 +52,7 @@ jobs:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.5'
version: '1.6'
- name: Install dependencies
run: |
julia --project=docs -e '
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
*.jl.mem
/docs/build/
.vscode
/.benchmarkci
/benchmark/*.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Konstantinos Samaras-Tsakiris <ksamtsak@gmail.com> and contributors
Copyright (c) 2020-2021 Konstantinos Samaras-Tsakiris <ksamtsak@gmail.com> and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

2 comments on commit 9a52d3e

@Oblynx
Copy link
Owner Author

@Oblynx Oblynx commented on 9a52d3e Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.2.0 already exists and points to a different commit"

Please sign in to comment.