Merge pull request #361 from GrammaticalFramework/build-action

Add workflow for building entire RGL
This commit is contained in:
John J. Camilleri
2020-11-12 08:08:16 +01:00
committed by GitHub
2 changed files with 31 additions and 1 deletions

30
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
env:
GF_VERSION: 3.10-1
DEST: out/
steps:
- uses: actions/checkout@v2
- name: Install GF
run: |
curl -s https://www.grammaticalframework.org/download/gf_${GF_VERSION}_amd64.deb -o gf.deb
sudo dpkg -i gf.deb
- name: Build RGL
run: |
mkdir -p ${DEST}
bash Setup.sh --dest=${DEST} --gf=gf --verbose
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: gf-rgl-${{ github.sha }}
path: ${{ env.DEST }}
if-no-files-found: error

View File

@@ -97,4 +97,4 @@ done
# Copy # Copy
echo "Copying to ${dest}" echo "Copying to ${dest}"
cp -R -p "${dist}"/* "${dest}" cp -R "${dist}"/* "${dest}"