Skip to content

Commit 80ea8b9

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 80ea8b9

File tree

3 files changed

+21
-69
lines changed

3 files changed

+21
-69
lines changed

.github/workflows/main.yml

+21-23
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,45 @@ 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
28+
with:
29+
# For codecov
30+
fetch-depth: 2
3131
# Install the D compiler
3232
- name: Prepare compiler
33-
uses: mihails-strasuns/setup-dlang@v1
33+
uses: dlang-community/setup-dlang@v1
3434
with:
3535
compiler: ${{ matrix.dc }}
3636

37-
# Install os-specific packages
38-
- name: '[Posix] Install dependencies'
39-
if: runner.os == 'macOS' || runner.os == 'Linux'
37+
# Install os-specific packages.
38+
# We only need pkg-config and libsodium, which *might* already be installed.
39+
# See https://github.com/actions/runner-images for included software / libraries
40+
- name: '[Linux] Install dependencies'
41+
if: runner.os == 'Linux'
4042
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
43+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
44+
sudo apt-get update
45+
sudo apt-get install libsodium-dev
4846
4947
- name: '[Windows] Load libsodium from cache'
5048
id: cache-libsodium
5149
if: runner.os == 'Windows'
52-
uses: actions/cache@v1
50+
uses: actions/cache@v4
5351
with:
5452
path: ${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\
5553
key: libsodium-1.0.18
@@ -87,6 +85,6 @@ jobs:
8785
if %errorlevel% neq 0 exit /b %errorlevel%
8886
8987
- name: 'Upload code coverage'
90-
uses: codecov/codecov-action@v1
88+
uses: codecov/codecov-action@v4
9189
with:
9290
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)