Skip to content

Commit a0e62ef

Browse files
committed
CI: add freebsd, linux-musl, linux-aarch64
1 parent fa63352 commit a0e62ef

File tree

5 files changed

+105
-1
lines changed

5 files changed

+105
-1
lines changed

.cirrus.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
freebsd_instance:
2+
image_family: freebsd-14-0-snap
3+
task:
4+
name: FreeBSD
5+
env:
6+
matrix:
7+
# - JULIA_VERSION: 1.6
8+
- JULIA_VERSION: 1
9+
# - JULIA_VERSION: nightly
10+
install_script:
11+
- sh -c "$(fetch https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh -o -)"
12+
build_script:
13+
- cirrusjl build
14+
test_script:
15+
- cirrusjl test
16+
coverage_script:
17+
- cirrusjl coverage codecov coveralls

.github/workflows/UnitTest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- os: macOS-latest
3333
version: '1'
3434
arch: x64
35+
- os: ubuntu-latest
36+
version: '1'
37+
arch: x86
3538
steps:
3639
- uses: actions/checkout@v2
3740
- uses: julia-actions/setup-julia@v1

.github/workflows/UnitTest_aarch.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: UnitTest (aarch)
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
test_aarch:
15+
runs-on: ubuntu-latest
16+
name: Julia 1 - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- arch: aarch64
22+
os: ubuntu20.04
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: uraimo/run-on-arch-action@v2
26+
with:
27+
arch: ${{ matrix.arch }}
28+
distro: ${{ matrix.os }}
29+
run: |
30+
pip3 install jill
31+
jill install julia --confirm
32+
julia --project=. --color=yes -e 'using Pkg; Pkg.instantiate()'
33+
julia --project=. --color=yes -e 'using Pkg; Pkg.test()'

.github/workflows/UnitTest_musl.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: UnitTest (musl)
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: '*'
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
test_aarch:
15+
runs-on: ubuntu-latest
16+
name: Julia 1 - ${{ matrix.os }} (musl) - ${{ matrix.arch }} - ${{ github.event_name }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
sys: [linux-musl]
21+
version: [1]
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Add symlink dir to PATH
25+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
26+
- name: Set up Python
27+
uses: actions/setup-python@v2
28+
- name: Set up Julia
29+
run: |
30+
pip install jill ${{ matrix.version }} --confirm
31+
- name: Test julia
32+
run: |
33+
pip install jill
34+
jill install julia --confirm
35+
julia --project=. --color=yes -e 'using Pkg; Pkg.instantiate()'
36+
julia --project=. --color=yes -e 'using Pkg; Pkg.test()'

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://johnnychen94.github.io/JpegTurbo.jl/stable)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://johnnychen94.github.io/JpegTurbo.jl/dev)
5-
[![Build Status](https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest.yml/badge.svg?branch=master)](https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest.yml?query=branch%3Amaster)
65
[![Coverage](https://codecov.io/gh/johnnychen94/JpegTurbo.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/johnnychen94/JpegTurbo.jl)
76

7+
| **Platform** | **Build Status** |
8+
|:------------------------------------------:|:--------------------------------------------------------:|
9+
| Linux x86/x64 && MacOS x64 && Windows x64 | [![Github Action][github-action-img]][github-action-url] |
10+
| Linux aarch64 | [![Github Action][github-action-aarch-img]][github-action-aarch-url] |
11+
| Linux musl | [![Github Action][github-action-musl-img]][github-action-musl-url] |
12+
| FreeBSD x86_64 | [![Cirrus][cirrus-img]][cirrus-url] |
13+
814
JpegTurbo.jl is a Julia wrapper of the C library [libjpeg-turbo] that provides IO support for
915
the JPEG image format. This package also backs the JPEG IO part of [ImageIO] and [FileIO].
1016

@@ -101,3 +107,12 @@ his generous guidance.
101107
[ImageMagick.jl]: https://github.com/JuliaIO/ImageMagick.jl
102108
[Sixel.jl]: https://github.com/johnnychen94/Sixel.jl
103109
[Yupei Qi]: https://github.com/Gnimuc
110+
111+
[github-action-img]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest.yml/badge.svg
112+
[github-action-url]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest.yml
113+
[github-action-aarch-img]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest_aarch.yml/badge.svg
114+
[github-action-aarch-url]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest_aarch.yml
115+
[github-action-musl-img]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest_musl.yml/badge.svg
116+
[github-action-musl-url]: https://github.com/johnnychen94/JpegTurbo.jl/actions/workflows/UnitTest_musl.yml
117+
[cirrus-img]: https://api.cirrus-ci.com/github/johnnychen94/JpegTurbo.jl.svg
118+
[cirrus-url]: https://cirrus-ci.com/github/johnnychen94/JpegTurbo.jl

0 commit comments

Comments
 (0)