-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (59 loc) · 1.33 KB
/
main.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
name: Main flow
env:
TARGET: x86_64-linux
DC: dmd
NNG_WITH_MBEDTLS: OFF
NNG_DEBUG: OFF
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
name: Run tests
strategy:
matrix:
dc: [dmd-latest]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: install make etc
run:
sudo apt-get install build-essential uwsc
- name: build
run:
make all
- name: run test
run:
make test
- name: report test
run: |
cat logs/runtest.log |grep '^#TEST' >> $GITHUB_STEP_SUMMARY
- name: post run
if: always()
uses: actions/upload-artifact@v4
with:
name: runlogs
path: logs/
handle_errors:
if: failure()
runs-on: ubuntu-latest
needs: test
steps:
- name: get logs
uses: actions/download-artifact@v4
with:
name: runlogs
path: logs/
- name: lsit
run: ls -alsR /home/runner/work/nng/nng/
- name: add logs
run: |
cat logs/runtest.log >> $GITHUB_STEP_SUMMARY