Skip to content

Commit 76c44c5

Browse files
authored
update CI (#244)
1 parent 709967d commit 76c44c5

File tree

4 files changed

+53
-54
lines changed

4 files changed

+53
-54
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,22 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.6'
21+
- 'lts'
2222
- '1'
2323
os:
2424
- ubuntu-latest
2525
- macos-latest
2626
- windows-latest
2727
arch:
28-
- x64
28+
- default
29+
- x86
30+
exclude:
31+
- os: macos-latest
32+
arch: x86
2933
include:
3034
- os: ubuntu-latest
31-
version: '1'
32-
arch: x86
33-
- os: macOS-14
34-
version: '1'
35-
arch: aarch64
35+
version: 'min'
36+
arch: x64
3637
steps:
3738
- uses: actions/checkout@v4
3839
- uses: julia-actions/setup-julia@v2

.github/workflows/Downstream.yml

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,61 +7,50 @@ on:
77

88
jobs:
99
test:
10-
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
11-
runs-on: ${{ matrix.os }}
12-
env:
13-
GROUP: ${{ matrix.package.group }}
10+
name: ${{ matrix.package }}
11+
runs-on: ubuntu-latest
1412
strategy:
1513
fail-fast: false
1614
matrix:
17-
julia-version: [1]
18-
os: [ubuntu-latest]
1915
package:
20-
- {user: JuliaIO, repo: CodecZlib.jl, group: TranscodingStreams}
21-
- {user: JuliaIO, repo: CodecLz4.jl, group: TranscodingStreams}
22-
- {user: JuliaIO, repo: CodecZstd.jl, group: TranscodingStreams}
23-
- {user: JuliaIO, repo: CodecBase.jl, group: TranscodingStreams}
24-
- {user: JuliaIO, repo: CodecXz.jl, group: TranscodingStreams}
25-
- {user: JuliaIO, repo: CodecBzip2.jl, group: TranscodingStreams}
26-
- {user: JuliaIO, repo: ZipArchives.jl, group: TranscodingStreams}
27-
- {user: JuliaIO, repo: JLD2.jl, group: TranscodingStreams}
28-
- {user: BioJulia, repo: Automa.jl, group: TranscodingStreams}
29-
- {user: BioJulia, repo: FASTX.jl, group: TranscodingStreams}
30-
- {user: JuliaVTK, repo: WriteVTK.jl, group: TranscodingStreams}
31-
- {user: JuliaData, repo: RData.jl, group: TranscodingStreams}
32-
- {user: JuliaWeb, repo: HTTP.jl, group: TranscodingStreams}
33-
- {user: reallyasi9, repo: ZipStreams.jl, group: TranscodingStreams}
16+
- 'CodecZlib'
17+
- 'CodecLz4'
18+
- 'CodecZstd'
19+
- 'CodecBase'
20+
- 'CodecXz'
21+
- 'CodecBzip2'
22+
- 'ZipArchives'
23+
- 'JLD2'
24+
- 'Automa'
25+
- 'FASTX'
26+
- 'WriteVTK'
27+
- 'RData'
28+
- 'HTTP'
29+
- 'ZipStreams'
3430
steps:
3531
- uses: actions/checkout@v4
3632
- uses: julia-actions/setup-julia@v2
3733
with:
38-
version: ${{ matrix.julia-version }}
34+
version: 1
3935
arch: x64
40-
- name: Clone Downstream
41-
uses: actions/checkout@v4
42-
with:
43-
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
44-
path: downstream
36+
show-versioninfo: true
4537
- name: Load this and run the downstream tests
4638
shell: julia --color=yes {0}
4739
run: |
4840
using Pkg
49-
using TOML
5041
Pkg.Registry.update()
5142
Pkg.activate(;temp=true)
5243
try
5344
# force it to use this PR's version of the package and test package
45+
ENV["JULIA_PKG_DEVDIR"]= mktempdir()
5446
Pkg.develop([
55-
PackageSpec(path="downstream"),
47+
PackageSpec(name="${{ matrix.package }}"),
5648
PackageSpec(path="."),
5749
PackageSpec(path="./lib/TestsForCodecPackages"),
5850
])
5951
# resolver may fail with main deps
6052
Pkg.update()
61-
p1 = joinpath("downstream", "JuliaProject.toml")
62-
p2 = joinpath("downstream", "Project.toml")
63-
proj_toml = isfile(p1) ? p1 : p2
64-
Pkg.test(TOML.parsefile(proj_toml)["name"]) # resolver may fail with test time deps
53+
Pkg.test("${{ matrix.package }}") # resolver may fail with test time deps
6554
catch err
6655
err isa Pkg.Resolve.ResolverError || rethrow()
6756
# If we can't resolve that means this is incompatible by SemVer and this is fine.

.github/workflows/RegisterAction.yml

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

.github/workflows/TagBot.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,35 @@ on:
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'
1026
runs-on: ubuntu-latest
1127
steps:
12-
- uses: JuliaRegistries/TagBot@v1
28+
- name: Tag top-level package
29+
uses: JuliaRegistries/TagBot@v1
1330
with:
1431
token: ${{ secrets.GITHUB_TOKEN }}
1532
ssh: ${{ secrets.DOCUMENTER_KEY }}
33+
- name: Tag subpackage
34+
uses: JuliaRegistries/TagBot@v1
35+
with:
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
ssh: ${{ secrets.DOCUMENTER_KEY }}
38+
subdir: lib/TestsForCodecPackages

0 commit comments

Comments
 (0)