|
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 |
| 28 | + with: |
| 29 | + # For codecov |
| 30 | + fetch-depth: 2 |
31 | 31 | # Install the D compiler
|
32 | 32 | - name: Prepare compiler
|
33 |
| - uses: mihails-strasuns/setup-dlang@v1 |
| 33 | + uses: dlang-community/setup-dlang@v1 |
34 | 34 | with:
|
35 | 35 | compiler: ${{ matrix.dc }}
|
36 | 36 |
|
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' |
40 | 42 | 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 |
48 | 46 |
|
49 | 47 | - name: '[Windows] Load libsodium from cache'
|
50 | 48 | id: cache-libsodium
|
51 | 49 | if: runner.os == 'Windows'
|
52 |
| - uses: actions/cache@v1 |
| 50 | + uses: actions/cache@v4 |
53 | 51 | with:
|
54 | 52 | path: ${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\
|
55 | 53 | key: libsodium-1.0.18
|
|
87 | 85 | if %errorlevel% neq 0 exit /b %errorlevel%
|
88 | 86 |
|
89 | 87 | - name: 'Upload code coverage'
|
90 |
| - uses: codecov/codecov-action@v1 |
| 88 | + uses: codecov/codecov-action@v4 |
91 | 89 | with:
|
92 | 90 | flags: unittests
|
0 commit comments