-
Notifications
You must be signed in to change notification settings - Fork 31
68 lines (60 loc) · 1.67 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on: [push, pull_request]
jobs:
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
name: Dub Test
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
- windows-2022
#- macos-10.15
dc:
- dmd-2.108.1
- dmd-2.102.1
- ldc-1.38.0
- ldc-1.31.0
arch:
- x86_64
clang:
- 12.0.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3
bundler-cache: true
# Ruby puts this on the path which breaks ldc
- name: Rename msys64/link.exe
if: startsWith(matrix.os,'windows')
shell: pwsh
run: mv C:\msys64\usr\bin\link.exe C:\msys64\usr\bin\msys-link.exe
- name: Cache
id: cache
uses: actions/cache@v3
with:
path: |
~/llvm
key: cache-os:${{ matrix.os }}-clang:${{ matrix.clang }}
- name: Setup D
uses: dlang-community/[email protected]
with:
compiler: ${{ matrix.dc }}
- name: Setup C++
uses: aminya/setup-cpp@v1
with:
llvm: ${{ matrix.clang }}
- name: Run tests
continue-on-error: ${{ contains(matrix.os, 'macos') }}
run: dub test -q --build=unittest-cov --arch=${{ matrix.arch }}
env:
LIBRARY_PATH: "${{ env.LLVM_PATH }}/lib"
- name: Build binary
run: dub build -q --arch=${{ matrix.arch }}
env:
LIBRARY_PATH: "${{ env.LLVM_PATH }}/lib"
- uses: codecov/[email protected]