-
Notifications
You must be signed in to change notification settings - Fork 55
52 lines (47 loc) · 1.52 KB
/
all_ubuntu.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
name: Run all tests [Ubuntu]
on: [push, pull_request]
env:
LLVM_VERSION: "15"
LLVM_CONFIG: llvm-config-15
jobs:
test:
name: SDC Tests
strategy:
matrix:
os: [ubuntu-latest]
dc: [dmd-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout SDC
uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Print D version
run: dmd --version
- name: Install system dependencies
run: sudo apt install nasm lld llvm-${{ env.LLVM_VERSION }}-dev
- name: Print LLVM version
run: ${{ env.LLVM_CONFIG }} --version
# CI runners usually top out at 4 "cores", but things are often busy so -j6 is a happy medium.
- name: Build
run: make -j6
- name: Test
run: make -j6 check
sdfmt:
name: Build sdfmt via dub
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
dc: [dmd-latest, ldc-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Build sdfmt
run: dub build :sdfmt