-
-
Notifications
You must be signed in to change notification settings - Fork 228
46 lines (41 loc) · 1.12 KB
/
alpine.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
# Build dub on Alpine Linux, testing compatibility with Musl
name: Alpine
on:
pull_request:
branches:
- master
- stable
paths-ignore:
- 'changelog/**'
push:
branches:
- master
- stable
# Use this branch name in your fork to test changes
- github-actions
jobs:
main:
name: Run
strategy:
# Default, disable if you want to debug
fail-fast: false
matrix:
include:
# Disabled as we rely on DIP1000 `foreach (scope)` which GDC < 12 doesn't support
# - { dc: gdc, dcpkg: gcc-gdc, dcbin: gdc }
- { dc: ldc, dcpkg: ldc, dcbin: ldc2 }
- { dc: dmd, dcpkg: dmd, dcbin: dmd }
# OS doesn't matter, we just need Docker
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
docker build -t alpine-dub-image \
--build-arg="DCPKG=${{ matrix.dcpkg}}" \
--build-arg="DCBIN=${{ matrix.dcbin}}" \
-f docker/Dockerfile.alpine $(pwd)
- name: Test
run: docker run alpine-dub-image