Skip to content

Commit d4b9244

Browse files
committed
Drop Julia 1.3
1 parent a2c74ac commit d4b9244

File tree

7 files changed

+122
-58
lines changed

7 files changed

+122
-58
lines changed

.cirrus.yml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,41 @@
1-
freebsd_instance:
2-
image: freebsd-12-1-release-amd64
31
task:
4-
name: FreeBSD
5-
env:
6-
matrix:
7-
- JULIA_VERSION: 1
8-
- JULIA_VERSION: nightly
9-
allow_failures: $JULIA_VERSION == 'nightly'
10-
install_script:
11-
- sh -c "$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)"
2+
matrix:
3+
- name: FreeBSD
4+
freebsd_instance:
5+
image_family: freebsd-13-1
6+
env:
7+
matrix:
8+
- JULIA_VERSION: 1.6
9+
- JULIA_VERSION: 1
10+
- name: Linux ARMv8
11+
arm_container:
12+
image: ubuntu:latest
13+
env:
14+
- JULIA_VERSION: 1
15+
- name: musl Linux
16+
container:
17+
image: alpine:3.14
18+
env:
19+
- JULIA_VERSION: 1
20+
- name: MacOS M1
21+
macos_instance:
22+
image: ghcr.io/cirruslabs/macos-monterey-base:latest
23+
env:
24+
- JULIA_VERSION: 1
25+
install_script: |
26+
URL="https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh"
27+
set -x
28+
if [ "$(uname -s)" = "Linux" ] && command -v apt; then
29+
apt update
30+
apt install -y curl
31+
fi
32+
if command -v curl; then
33+
sh -c "$(curl ${URL})"
34+
elif command -v wget; then
35+
sh -c "$(wget ${URL} -q -O-)"
36+
elif command -v fetch; then
37+
sh -c "$(fetch ${URL} -o -)"
38+
fi
1239
build_script:
1340
- cirrusjl build
1441
test_script:

.github/workflows/CI_M1.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/CompatHelper.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,44 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 00 * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
79
jobs:
810
CompatHelper:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: julia-actions/setup-julia@latest
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
1219
with:
13-
version: 1.3
14-
- name: Pkg.add("CompatHelper")
15-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16-
- name: CompatHelper.main()
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
1742
env:
1843
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
run: julia -e 'using CompatHelper; CompatHelper.main()'
44+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/Documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- uses: julia-actions/setup-julia@latest
1515
with:
1616
version: '1'
1717
- name: Install dependencies
18-
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
18+
run: julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
1919
- name: Build and deploy
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Invalidations.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Invalidations
2+
# Uses SnoopCompile to evaluate number of invalidations caused by `using` the package
3+
# using https://github.com/julia-actions/julia-invalidations
4+
# Based on https://github.com/julia-actions/julia-invalidations
5+
6+
on:
7+
pull_request:
8+
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: always.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
evaluate:
17+
# Only run on PRs to the default branch.
18+
# In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
19+
if: github.base_ref == github.event.repository.default_branch
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: '1'
25+
- uses: actions/checkout@v3
26+
- uses: julia-actions/julia-buildpkg@v1
27+
- uses: julia-actions/julia-invalidations@v1
28+
id: invs_pr
29+
30+
- uses: actions/checkout@v3
31+
with:
32+
ref: ${{ github.event.repository.default_branch }}
33+
- uses: julia-actions/julia-buildpkg@v1
34+
- uses: julia-actions/julia-invalidations@v1
35+
id: invs_default
36+
37+
- name: Report invalidation counts
38+
run: |
39+
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
40+
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
41+
- name: Check if the PR does increase number of invalidations
42+
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
43+
run: exit 1

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
version: ['1.3', '1']
16+
version: ['1.6', '1']
1717
os: [ubuntu-latest, macOS-latest, windows-latest]
1818
arch: [x64]
1919
allow_failure: [false]
@@ -31,12 +31,12 @@ jobs:
3131
arch: x64
3232
allow_failure: true
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535
- uses: julia-actions/setup-julia@v1
3636
with:
3737
version: ${{ matrix.version }}
3838
arch: ${{ matrix.arch }}
39-
- uses: actions/cache@v1
39+
- uses: actions/cache@v3
4040
env:
4141
cache-name: cache-artifacts
4242
with:
@@ -49,6 +49,6 @@ jobs:
4949
- uses: julia-actions/julia-buildpkg@v1
5050
- uses: julia-actions/julia-runtest@v1
5151
- uses: julia-actions/julia-processcoverage@v1
52-
- uses: codecov/codecov-action@v1
52+
- uses: codecov/codecov-action@v3
5353
with:
54-
file: lcov.info
54+
files: lcov.info

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
1414
FastClosures = "0.2, 0.3"
1515
LDLFactorizations = "0.8.1, 0.9, 0.10"
1616
TimerOutputs = "^0.5"
17-
julia = "^1.3.0"
17+
julia = "^1.6.0"
1818

1919
[extras]
2020
Arpack = "7d9fca2a-8960-54d3-9f78-7d1dccf2cb97"

0 commit comments

Comments
 (0)