-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (57 loc) · 1.57 KB
/
linux.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
name: Linux
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Restore configure results
id: cached-configure-restore
uses: actions/cache/restore@v4
with:
path: |
include/deemon/config.h
config.mk
key: ${{ runner.os }}-configure
- name: Configure
if: steps.cached-configure-restore.outputs.cache-hit != 'true'
run: bash configure --without-libffi
- name: Save configure results
if: steps.cached-configure-restore.outputs.cache-hit != 'true'
id: cached-configure-save
uses: actions/cache/save@v4
with:
path: |
include/deemon/config.h
config.mk
key: ${{ runner.os }}-configure
- name: Bind GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Make
run: make -j $(nproc)
- name: Test
run: ./deemon util/test.dee
- name: Prepare lib folder for artifact
run: |
find "lib" -name '*.dec' -delete
find "lib" -name '.gitignore' -delete
unlink lib/LANGUAGE.txt || true
- name: Save executable as artifact
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-${{ github.sha }}-build
if-no-files-found: ignore
path: |
include/deemon/config.h
config.mk
deemon
deemon.*
lib