Skip to content

Commit

Permalink
CI: updated scripts. Minimal Julia is 1.6 now
Browse files Browse the repository at this point in the history
  • Loading branch information
rssdev10 committed Oct 16, 2023
1 parent dfb4fd9 commit 76ad812
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 10 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/CompatHelpter.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
name: CompatHelper
on:
schedule:
- cron: 23 23 * * *
- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
- name: Check if Julia is already available in the PATH
id: julia_in_path
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
with:
version: '1'
arch: ${{ runner.arch }}
if: steps.julia_in_path.outcome != 'success'
- 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()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
18 changes: 18 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ on:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
Expand All @@ -12,3 +28,5 @@ jobs:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
ssh: ${{ secrets.DOCUMENTER_KEY }}
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
version:
- '1.3'
- '1.6'
- '1'
- 'nightly'
os:
Expand All @@ -29,12 +29,12 @@ jobs:
# MacOS not available on x86
- {os: 'macOS-latest', arch: 'x86'}
# Don't test on all versions
- {os: 'macOS-latest', version: '1.3'}
- {os: 'macOS-latest', version: '1.6'}
- {os: 'macOS-latest', version: 'nightly'}
- {os: 'windows-latest', version: '1.3'}
- {os: 'windows-latest', version: '1.6'}
- {os: 'windows-latest', version: 'nightly'}
- {os: 'windows-latest', arch: 'x86'}
- {arch: 'x86', version: '1.3'}
- {arch: 'x86', version: '1.6'}
- {arch: 'x86', version: 'nightly'}
steps:
- uses: actions/checkout@v1
Expand All @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v1
- uses: julia-actions/setup-julia@latest
with:
version: '1.5'
version: '1.9'
- run: julia --project=docs -e '
using Pkg;
Pkg.develop(PackageSpec(; path=pwd()));
Expand Down

0 comments on commit 76ad812

Please sign in to comment.