From af2f8d95850230f9eb52514d560c16f69ffbbde0 Mon Sep 17 00:00:00 2001 From: Geod24 Date: Sat, 4 Mar 2023 01:00:39 +0100 Subject: [PATCH] Replace unused Travis file with a GH workflow --- .github/workflows/d.yml | 21 +++++++++++++++++++++ .travis.yml | 38 -------------------------------------- README.markdown | 2 +- 3 files changed, 22 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/d.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml new file mode 100644 index 0000000..3be956e --- /dev/null +++ b/.github/workflows/d.yml @@ -0,0 +1,21 @@ +name: Test +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macOS-latest, windows-latest ] + dc: [ dmd-latest, ldc-latest ] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install compiler + uses: dlang-community/setup-dlang@v1 + with: + compiler: ${{ matrix.dc }} + - name: Test + run: | + dub test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f5e7797..0000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: d - -os: - - linux - - osx - -d: - - dmd - - gdc - - ldc - -addons: - apt: - packages: - - gcc-multilib - -env: - - ARCH=x86_64 - - ARCH=x86 - -script: - - dub test --arch=$ARCH - -branches: - only: - - master - -notifications: - email: true - -sudo: false - -matrix: - allow_failures: - - os: osx - d: gdc # not installed on travis - - os: osx - env: ARCH=x86 # not supported diff --git a/README.markdown b/README.markdown index a4bf2e1..e4c43e5 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/msgpack/msgpack-d.png)](https://travis-ci.org/msgpack/msgpack-d) +[![CI](https://github.com/msgpack/msgpack-d/actions/workflows/d.yml/badge.svg)](https://github.com/msgpack/msgpack-d/actions/workflows/d.yml) # MessagePack for D