Skip to content

Commit

Permalink
Replace Travis with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwong committed Jun 23, 2023
1 parent 688272a commit fb633b8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 45 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: ["master"]
tags: ["v[0-9]+.[0-9]+.[0-9]+", "yeslogic-fontconfig-sys-[0-9]+.[0-9]+.[0-9]+"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
ci:
strategy:
matrix:
rust: [stable, 1.56.0]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- run: sudo apt-get -y install libfontconfig1-dev jq
- run: cargo test
- run: |
if [ "${{matrix.rust}}" = "stable" ]; then
./ci/ldd-grep
else
true
fi
- run: cargo test --features dlopen --manifest-path fontconfig/Cargo.toml
- run: |
if [ "${{matrix.rust}}" = "stable" ]; then
./ci/ldd-grep -v -- --features dlopen
else
true
fi
- run: RUST_FONTCONFIG_DLOPEN=on cargo test
- run: |
if [ "${{matrix.rust}}" = "stable" ]; then
RUST_FONTCONFIG_DLOPEN=on ./ci/ldd-grep -v
else
true
fi
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ fontconfig
==========

<div align="center">
<a href="https://travis-ci.com/yeslogic/fontconfig-rs">
<img src="https://travis-ci.com/yeslogic/fontconfig-rs.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/yeslogic/fontconfig-rs/actions/workflows/ci.yml">
<img src="https://github.com/yeslogic/fontconfig-rs/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
<a href="https://docs.rs/fontconfig">
<img src="https://docs.rs/fontconfig/badge.svg" alt="Documentation">
</a>
Expand Down

0 comments on commit fb633b8

Please sign in to comment.