Skip to content

Commit 0c65539

Browse files
Merge pull request #361 from GrammaticalFramework/build-action
Add workflow for building entire RGL
2 parents ae7e895 + aa3b664 commit 0c65539

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-18.04
8+
env:
9+
GF_VERSION: 3.10-1
10+
DEST: out/
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Install GF
16+
run: |
17+
curl -s https://www.grammaticalframework.org/download/gf_${GF_VERSION}_amd64.deb -o gf.deb
18+
sudo dpkg -i gf.deb
19+
20+
- name: Build RGL
21+
run: |
22+
mkdir -p ${DEST}
23+
bash Setup.sh --dest=${DEST} --gf=gf --verbose
24+
25+
- name: Upload artifact
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: gf-rgl-${{ github.sha }}
29+
path: ${{ env.DEST }}
30+
if-no-files-found: error

Setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ done
9797

9898
# Copy
9999
echo "Copying to ${dest}"
100-
cp -R -p "${dist}"/* "${dest}"
100+
cp -R "${dist}"/* "${dest}"

0 commit comments

Comments
 (0)