-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.65 KB
/
makefile.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
name: Makefile CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: Install dependencies
run: make
- name: Run check
run: make check
- name: Run distcheck
run: make distcheck
- name: Install SWI-Prolog
description: Sets up ISO/Edinburgh-style Prolog interpreter
runs:
using: "composite"
steps:
- name: Install SWI-Prolog on macOS
if: runner.os == 'macOS'
run: brew install swi-prolog
shell: bash
- name: Install SWI-Prolog on Windows
if: runner.os == 'Windows'
run: |
choco install SWI-Prolog
echo "$env:ProgramFiles\\swipl\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
shell: pwsh
- name: Install SWI-Prolog on Linux
if: runner.os == 'Linux'
run: |
sudo apt-add-repository ppa:swi-prolog/devel
sudo apt-get update
sudo apt-get install swi-prolog
shell: bash
- name: Check installation
run: swipl -t check_installation
shell: bash
- name: Install pack
run: swipl -t "pack_install(., [interactive(false), link(false)])"
shell: bash
- name: Run tests with coverage
run: swipl -s "${{ github.action_path }}/action.pl"
shell: bash
# branding:
# icon: 'check-circle'
# color: 'green'