-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
49 lines (41 loc) · 1.14 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout prohelp-cli
uses: actions/checkout@v4
with:
path: prohelp-cli
- name: Checkout prohelp (path dependency)
uses: actions/checkout@v4
with:
repository: openshellorg/prohelp
ref: v0.2.3
path: prohelp
- name: Setup D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Build library
working-directory: prohelp-cli
run: dub build -c library
- name: Build demo binary
working-directory: prohelp-cli
run: dub build -c demo --build=release
- name: Smoke demo
working-directory: prohelp-cli
shell: bash
run: |
if [ -f prohelp-cli-demo.exe ]; then BIN=./prohelp-cli-demo.exe; else BIN=./prohelp-cli-demo; fi
"$BIN" --help || "$BIN" ?