Skip to content

Commit

Permalink
update CI (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Dec 11, 2024
1 parent 709967d commit 76c44c5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 54 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- 'lts'
- '1'
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
- default
- x86
exclude:
- os: macos-latest
arch: x86
include:
- os: ubuntu-latest
version: '1'
arch: x86
- os: macOS-14
version: '1'
arch: aarch64
version: 'min'
arch: x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand Down
53 changes: 21 additions & 32 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,61 +7,50 @@ on:

jobs:
test:
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.package.group }}
name: ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
julia-version: [1]
os: [ubuntu-latest]
package:
- {user: JuliaIO, repo: CodecZlib.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: CodecLz4.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: CodecZstd.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: CodecBase.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: CodecXz.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: CodecBzip2.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: ZipArchives.jl, group: TranscodingStreams}
- {user: JuliaIO, repo: JLD2.jl, group: TranscodingStreams}
- {user: BioJulia, repo: Automa.jl, group: TranscodingStreams}
- {user: BioJulia, repo: FASTX.jl, group: TranscodingStreams}
- {user: JuliaVTK, repo: WriteVTK.jl, group: TranscodingStreams}
- {user: JuliaData, repo: RData.jl, group: TranscodingStreams}
- {user: JuliaWeb, repo: HTTP.jl, group: TranscodingStreams}
- {user: reallyasi9, repo: ZipStreams.jl, group: TranscodingStreams}
- 'CodecZlib'
- 'CodecLz4'
- 'CodecZstd'
- 'CodecBase'
- 'CodecXz'
- 'CodecBzip2'
- 'ZipArchives'
- 'JLD2'
- 'Automa'
- 'FASTX'
- 'WriteVTK'
- 'RData'
- 'HTTP'
- 'ZipStreams'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
version: 1
arch: x64
- name: Clone Downstream
uses: actions/checkout@v4
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
path: downstream
show-versioninfo: true
- name: Load this and run the downstream tests
shell: julia --color=yes {0}
run: |
using Pkg
using TOML
Pkg.Registry.update()
Pkg.activate(;temp=true)
try
# force it to use this PR's version of the package and test package
ENV["JULIA_PKG_DEVDIR"]= mktempdir()
Pkg.develop([
PackageSpec(path="downstream"),
PackageSpec(name="${{ matrix.package }}"),
PackageSpec(path="."),
PackageSpec(path="./lib/TestsForCodecPackages"),
])
# resolver may fail with main deps
Pkg.update()
p1 = joinpath("downstream", "JuliaProject.toml")
p2 = joinpath("downstream", "Project.toml")
proj_toml = isfile(p1) ? p1 : p2
Pkg.test(TOML.parsefile(proj_toml)["name"]) # resolver may fail with test time deps
Pkg.test("${{ matrix.package }}") # resolver may fail with test time deps
catch err
err isa Pkg.Resolve.ResolverError || rethrow()
# If we can't resolve that means this is incompatible by SemVer and this is fine.
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/RegisterAction.yml

This file was deleted.

25 changes: 24 additions & 1 deletion .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,35 @@ 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'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
- name: Tag top-level package
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
- name: Tag subpackage
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/TestsForCodecPackages

0 comments on commit 76c44c5

Please sign in to comment.