-
-
Notifications
You must be signed in to change notification settings - Fork 265
73 lines (69 loc) · 1.98 KB
/
alpine_musl.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
69
70
71
72
73
name: Alpine Linux (musl libc)
on:
- pull_request
- push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Alpine Linux (musl libc)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 50
- name: Setup latest Alpine Linux
uses: jirutka/setup-alpine@v1
with:
packages: >
ldc
git
g++
cmake
ninja
llvm-dev
llvm-static
llvm-libunwind-static
bash
grep
diffutils
make
- name: Build LDC & LDC D unittests & defaultlib unittest runners
run: |
set -eux
export CC=gcc
export CXX=g++
cmake -G Ninja . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/opt/ldc2" \
-DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++ \
-DLLVM_IS_SHARED=OFF \
-DD_COMPILER_FLAGS=-link-defaultlib-shared=false \
-DBUILD_SHARED_LIBS=OFF
ninja obj/ldc2.o all ldc2-unittest all-test-runners
bin/ldc2 --version
shell: alpine.sh {0}
- name: Run LDC D unittests
if: success() || failure()
run: ctest --output-on-failure -R "ldc2-unittest"
shell: alpine.sh {0}
- name: Run LIT testsuite
if: success() || failure()
run: |
set -eux
ctest -V -R "lit-tests"
shell: alpine.sh {0}
- name: Run DMD testsuite
if: success() || failure()
run: ctest -V -R "dmd-testsuite"
shell: alpine.sh {0}
- name: Run defaultlib unittests & druntime integration tests
if: success() || failure()
run: |
set -eux
excludes=
N=$(nproc)
ctest -j$N --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest"
shell: alpine.sh {0}