-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (48 loc) · 1.38 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Installation and tests
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
dc: [ dmd-latest ]
bt: [ debug ]
meson: [ '0.62.2' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Enable MS Developer Command Prompt
if: ${{ matrix.os == 'windows-latest' }}
uses: ilammy/[email protected]
- name: Install Ubuntu deps
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install libzstd-dev
- name: Install D Compiler and Dub
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Meson Build & Test
uses: BSFishy/[email protected]
with:
action: test
directory: build
setup-options: --buildtype=${{ matrix.bt }} -Denable_test=true
meson-version: ${{ matrix.meson }}
options: --verbose
- name: Test Dub package
run: dub run --arch=x86_64
working-directory: .github/dub_test
- name: Test download_unbox Example
run: ./download_unbox.d
working-directory: examples
- name: Test box_upload Example
run: ./box_upload.d
working-directory: examples