From fce1281aacae4e739721243d016e50c8874097a7 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Fri, 24 May 2024 00:16:13 +0200 Subject: [PATCH] Modernize CI configuration - Remove mentions of Travis CI; - Upgrade all actions to their latest release (and location); - Upgrade host OS to use latest tag; - Only test the latest (and master) dmd and ldc; --- .github/workflows/main.yml | 21 +++++++----------- .travis.yml | 45 -------------------------------------- README.md | 1 - 3 files changed, 8 insertions(+), 59 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ba4ba7..a15ad50 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,28 +9,23 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-18.04, macOS-10.15, windows-2019 ] - # DMD < 2.087.1 does not work on Mac OSX Catalina (10.15) because druntime used - # a private symbol, hence this is the minimum required version - # However, while compiling with DMD 2.087.1 works on Catalina, - # the distributed binary was not built with it until 2.090.0 - dc: [ dmd-master, ldc-master, dmd-latest, ldc-latest, dmd-2.090.0, ldc-1.17.0 ] + os: [ ubuntu-latest, macOS-latest, windows-latest ] + dc: [ dmd-master, ldc-master, dmd-latest, ldc-latest ] exclude: # https://github.com/dlang/dub/issues/1914 # https://github.com/dlang/dub/issues/1915 - - { os: windows-2019, dc: dmd-master } - - { os: windows-2019, dc: dmd-latest } - - { os: windows-2019, dc: dmd-2.090.0 } + - { os: windows-latest, dc: dmd-master } + - { os: windows-latest, dc: dmd-latest } runs-on: ${{ matrix.os }} timeout-minutes: 30 steps: # Checkout this repository - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Install the D compiler - name: Prepare compiler - uses: mihails-strasuns/setup-dlang@v1 + uses: dlang-community/setup-dlang@v1 with: compiler: ${{ matrix.dc }} @@ -49,7 +44,7 @@ jobs: - name: '[Windows] Load libsodium from cache' id: cache-libsodium if: runner.os == 'Windows' - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\ key: libsodium-1.0.18 @@ -87,6 +82,6 @@ jobs: if %errorlevel% neq 0 exit /b %errorlevel% - name: 'Upload code coverage' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: flags: unittests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 31c1a19..0000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: d - -# Trusty is Travis' default but reached EOL 2019-04-30 -dist: xenial - -# Poor man SemVer matching -branches: - only: - - /upstream-\S+/ - - /^v\d+\.(x|[\d]+)\.(x|[\d]+)([-|\+](\S+))?$/ - -os: - - linux - - osx - -# The libsodium provided in this package is rather ancient, -# but it will do as the API almost never changes -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libsodium-dev - -# Install libsodium on Mac -before_install: - - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libsodium; fi - -d: - - dmd - - ldc - - dmd-2.085.1 - - ldc-1.14.0 - -matrix: - include: - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gdc-9 - - libsodium-dev - env: DC=gdc-9 diff --git a/README.md b/README.md index 7a93571..5c3da61 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ ## Libsodiumd: D bindings for libsodium -[![Build Status](https://travis-ci.com/geod24/libsodiumd.svg?branch=upstream-1.0.17)](https://travis-ci.com/geod24/libsodiumd) [![DUB Package](https://img.shields.io/dub/v/libsodiumd.svg)](https://code.dlang.org/packages/libsodiumd) Currently supported version: v1.0.18 (released 2019-05-31)