|
9 | 9 | strategy:
|
10 | 10 | fail-fast: false
|
11 | 11 | 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 ] |
18 | 14 | exclude:
|
19 | 15 | # https://github.com/dlang/dub/issues/1914
|
20 | 16 | # 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 } |
24 | 21 |
|
25 | 22 | runs-on: ${{ matrix.os }}
|
26 | 23 | timeout-minutes: 30
|
27 | 24 | steps:
|
28 | 25 |
|
29 | 26 | # Checkout this repository
|
30 |
| - - uses: actions/checkout@v2 |
| 27 | + - uses: actions/checkout@v4 |
31 | 28 | # Install the D compiler
|
32 | 29 | - name: Prepare compiler
|
33 |
| - uses: mihails-strasuns/setup-dlang@v1 |
| 30 | + uses: dlang-community/setup-dlang@v1 |
34 | 31 | with:
|
35 | 32 | compiler: ${{ matrix.dc }}
|
36 | 33 |
|
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' |
40 | 39 | 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 |
48 | 43 |
|
49 | 44 | - name: '[Windows] Load libsodium from cache'
|
50 | 45 | id: cache-libsodium
|
51 | 46 | if: runner.os == 'Windows'
|
52 |
| - uses: actions/cache@v1 |
| 47 | + uses: actions/cache@v4 |
53 | 48 | with:
|
54 | 49 | path: ${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\
|
55 | 50 | key: libsodium-1.0.18
|
|
87 | 82 | if %errorlevel% neq 0 exit /b %errorlevel%
|
88 | 83 |
|
89 | 84 | - name: 'Upload code coverage'
|
90 |
| - uses: codecov/codecov-action@v1 |
| 85 | + uses: codecov/codecov-action@v4 |
91 | 86 | with:
|
92 | 87 | flags: unittests
|
0 commit comments