-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (49 loc) · 1.3 KB
/
build.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
# SPDX-FileCopyrightText: 2024 Soulfind Contributors
# SPDX-License-Identifier: GPL-3.0-or-later
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: alpine:edge
timeout-minutes: 15
strategy:
matrix:
include:
- compiler: dmd
ccommand: dmd
- compiler: ldc
ccommand: ldmd2
env:
DC: ${{ matrix.ccommand }}
DEBUG: 1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: apk add ${{ matrix.compiler }} gcc make musl-dev sqlite-dev
- name: Build
run: make
artifacts:
runs-on: ubuntu-latest
container: alpine:edge
timeout-minutes: 15
strategy:
matrix:
arch: [x86_64]
type: [release, debug]
env:
DC: ldmd2 -static -O
DEBUG: ${{ matrix.type == 'debug' && '1' || '0' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: apk add gcc ldc ldc-static make musl-dev sqlite-dev sqlite-static
- name: Build
run: make
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: soulfind-${{ matrix.arch }}-linux-${{ matrix.type }}
path: bin