-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
embedding.yml
27 lines (25 loc) · 1.02 KB
/
embedding.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
name: Embedding
on: [push]
jobs:
embedding:
runs-on: macOS-latest
steps:
- name: Install GNU Prolog backend
uses: logtalk-actions/setup-gnu-prolog@master
with:
gnu-prolog-version: latest
- name: Install Logtalk
uses: logtalk-actions/setup-logtalk@master
with:
logtalk-version: git
logtalk-tool-dependencies: false
- name: Create an executable from the "spider" text adventure game
run: |
mkdir collect
echo ":- initialization('::'(spider,start))." >> collect/init.pl
$LOGTALKHOME/scripts/embedding/gprolog/gprolog_embed_logtalk.sh -c -d $GITHUB_WORKSPACE/collect -n spider -l $LOGTALKUSER/examples/adventure/spider.lgt -s $LOGTALKUSER/scripts/embedding/settings-embedding-sample.lgt -p $LOGTALKUSER/paths/paths.pl -- --strip --no-top-level $GITHUB_WORKSPACE/collect/init.pl
- name: Upload executable
uses: actions/upload-artifact@master
with:
name: spider
path: collect/spider