Skip to content

Commit 34db480

Browse files
authored
Merge pull request #42 from JuliaLinearAlgebra/vs/adapt-4
Update Adapt dependency to 4
2 parents 4bcf1ce + 3bf5637 commit 34db480

File tree

4 files changed

+58
-44
lines changed

4 files changed

+58
-44
lines changed

.github/workflows/CI.yml

+35-40
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,68 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- master
63
push:
7-
branches:
8-
- master
9-
tags: '*'
4+
branches: [master]
5+
tags: ['*']
6+
pull_request:
7+
workflow_dispatch:
108
jobs:
119
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} ${{ matrix.arch }}
1311
runs-on: ${{ matrix.os }}
12+
13+
permissions:
14+
actions: write
15+
contents: read
16+
1417
strategy:
1518
fail-fast: false
1619
matrix:
1720
version:
18-
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20-
- 'nightly'
21+
- '1' # Current stable version
2122
os:
2223
- ubuntu-latest
24+
- windows-latest
25+
- macOS-latest
2326
arch:
2427
- x64
28+
include:
29+
- os: macOS-14
30+
arch: aarch64
31+
version: '1'
32+
- os: ubuntu-latest
33+
arch: x86
34+
version: '1'
35+
- os: ubuntu-latest
36+
arch: x64
37+
version: '1.0'
38+
- os: ubuntu-latest
39+
arch: x64
40+
version: 'nightly'
41+
2542
steps:
2643
- uses: actions/checkout@v4
2744
- uses: julia-actions/setup-julia@v1
2845
with:
2946
version: ${{ matrix.version }}
3047
arch: ${{ matrix.arch }}
31-
- uses: actions/cache@v4
32-
env:
33-
cache-name: cache-artifacts
48+
- uses: julia-actions/cache@v1
3449
with:
35-
path: ~/.julia/artifacts
36-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
37-
restore-keys: |
38-
${{ runner.os }}-test-${{ env.cache-name }}-
39-
${{ runner.os }}-test-
40-
${{ runner.os }}-
50+
cache-registries: ${{ !(matrix.version == '1.6' && matrix.os == 'windows-latest') }}
4151
- uses: julia-actions/julia-buildpkg@v1
4252
- uses: julia-actions/julia-runtest@v1
4353
- uses: julia-actions/julia-processcoverage@v1
44-
- uses: codecov/codecov-action@v3
54+
- uses: codecov/codecov-action@v4
4555
with:
46-
file: lcov.info
56+
files: lcov.info
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
fail_ci_if_error: true
4759
docs:
4860
name: Documentation
4961
runs-on: ubuntu-latest
5062
steps:
5163
- uses: actions/checkout@v4
52-
- uses: julia-actions/setup-julia@v1
53-
with:
54-
version: '1'
55-
- run: |
56-
julia --project=docs -e '
57-
using Pkg
58-
Pkg.develop(PackageSpec(path=pwd()))
59-
Pkg.instantiate()'
60-
- run: |
61-
julia --project=docs -e '
62-
using Documenter: doctest, DocMeta
63-
using TSVD
64-
DocMeta.setdocmeta!(
65-
TSVD,
66-
:DocTestSetup,
67-
:(using TSVD, MatrixDepot; matrixdepot("LPnetlib/lp_osa_30"));
68-
recursive=true)
69-
doctest(TSVD)'
70-
- run: julia --project=docs docs/make.jl
64+
- uses: julia-actions/julia-buildpkg@latest
65+
- uses: julia-actions/julia-docdeploy@latest
7166
env:
7267
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7368
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/TagBot.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
name: TagBot
22
on:
3-
issue_comment: # THIS BIT IS NEW
3+
issue_comment:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -12,3 +28,6 @@ jobs:
1228
- uses: JuliaRegistries/TagBot@v1
1329
with:
1430
token: ${{ secrets.GITHUB_TOKEN }}
31+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
32+
ssh: ${{ secrets.DOCUMENTER_KEY }}
33+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name = "TSVD"
22
uuid = "9449cd9e-2762-5aa3-a617-5413e99d722e"
3-
version = "0.4.3"
3+
version = "0.4.4"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88

99
[compat]
10-
Adapt = "2.1, 3.0"
10+
Adapt = "2.1, 3, 4"
1111
julia = "1"
1212

1313
[extras]

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
MatrixDepot = "b51810bb-c9f3-55da-ae3c-350fc1fbce05"
44

55
[compat]
6-
Documenter = "0.25"
6+
Documenter = "1"
77
MatrixDepot = "1"

0 commit comments

Comments
 (0)