Skip to content

Commit 26df432

Browse files
committed
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;
1 parent 8bc62db commit 26df432

File tree

3 files changed

+18
-69
lines changed

3 files changed

+18
-69
lines changed

.github/workflows/main.yml

+18-23
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,42 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [ ubuntu-18.04, macOS-10.15, windows-2019 ]
13-
# DMD < 2.087.1 does not work on Mac OSX Catalina (10.15) because druntime used
14-
# a private symbol, hence this is the minimum required version
15-
# However, while compiling with DMD 2.087.1 works on Catalina,
16-
# the distributed binary was not built with it until 2.090.0
17-
dc: [ dmd-master, ldc-master, dmd-latest, ldc-latest, dmd-2.090.0, ldc-1.17.0 ]
12+
os: [ ubuntu-latest, macOS-latest, windows-latest ]
13+
dc: [ dmd-master, ldc-master, dmd-latest, ldc-latest ]
1814
exclude:
1915
# https://github.com/dlang/dub/issues/1914
2016
# https://github.com/dlang/dub/issues/1915
21-
- { os: windows-2019, dc: dmd-master }
22-
- { os: windows-2019, dc: dmd-latest }
23-
- { os: windows-2019, dc: dmd-2.090.0 }
17+
- { os: windows-latest, dc: dmd-master }
18+
- { os: windows-latest, dc: dmd-latest }
19+
- { os: macOS-latest, dc: dmd-master }
20+
- { os: macOS-latest, dc: dmd-latest }
2421

2522
runs-on: ${{ matrix.os }}
2623
timeout-minutes: 30
2724
steps:
2825

2926
# Checkout this repository
30-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
3128
# Install the D compiler
3229
- name: Prepare compiler
33-
uses: mihails-strasuns/setup-dlang@v1
30+
uses: dlang-community/setup-dlang@v1
3431
with:
3532
compiler: ${{ matrix.dc }}
3633

37-
# Install os-specific packages
38-
- name: '[Posix] Install dependencies'
39-
if: runner.os == 'macOS' || runner.os == 'Linux'
34+
# Install os-specific packages.
35+
# We only need pkg-config and libsodium, which *might* already be installed.
36+
# See https://github.com/actions/runner-images for included software / libraries
37+
- name: '[Linux] Install dependencies'
38+
if: runner.os == 'Linux'
4039
run: |
41-
if [ '${{ runner.os }}' == 'macOS' ]; then
42-
brew install pkg-config libsodium
43-
elif [ '${{ runner.os }}' == 'Linux' ]; then
44-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
45-
sudo apt-get update
46-
sudo apt-get install libsodium-dev
47-
fi
40+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
41+
sudo apt-get update
42+
sudo apt-get install libsodium-dev
4843
4944
- name: '[Windows] Load libsodium from cache'
5045
id: cache-libsodium
5146
if: runner.os == 'Windows'
52-
uses: actions/cache@v1
47+
uses: actions/cache@v4
5348
with:
5449
path: ${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\
5550
key: libsodium-1.0.18
@@ -87,6 +82,6 @@ jobs:
8782
if %errorlevel% neq 0 exit /b %errorlevel%
8883
8984
- name: 'Upload code coverage'
90-
uses: codecov/codecov-action@v1
85+
uses: codecov/codecov-action@v4
9186
with:
9287
flags: unittests

.travis.yml

-45
This file was deleted.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
## Libsodiumd: D bindings for libsodium
22

3-
[![Build Status](https://travis-ci.com/geod24/libsodiumd.svg?branch=upstream-1.0.17)](https://travis-ci.com/geod24/libsodiumd)
43
[![DUB Package](https://img.shields.io/dub/v/libsodiumd.svg)](https://code.dlang.org/packages/libsodiumd)
54

65
Currently supported version: v1.0.18 (released 2019-05-31)

0 commit comments

Comments
 (0)