From 76ad812c051a8587bcd2af39b5cf11fb952ceb27 Mon Sep 17 00:00:00 2001 From: Roman S Samarev Date: Sun, 15 Oct 2023 21:57:51 -0700 Subject: [PATCH] CI: updated scripts. Minimal Julia is 1.6 now --- .github/workflows/CompatHelpter.yml | 39 +++++++++++++++++++++++++---- .github/workflows/TagBot.yml | 18 +++++++++++++ .github/workflows/ci.yml | 10 ++++---- 3 files changed, 57 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CompatHelpter.yml b/.github/workflows/CompatHelpter.yml index 79f0424b..09181610 100644 --- a/.github/workflows/CompatHelpter.yml +++ b/.github/workflows/CompatHelpter.yml @@ -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 }} diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 778c06fe..b064ecf4 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -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' @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6981550..a79807ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: version: - - '1.3' + - '1.6' - '1' - 'nightly' os: @@ -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 @@ -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()));