Skip to content

Commit

Permalink
BLD Build static Linux binary using GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
unode authored and luispedro committed Jun 29, 2021
1 parent 6558bdc commit 926bfc5
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: NGLess Linux (Ubuntu) Build

on: [push]

jobs:
ngless:
name: Build, install and upload NGLess
runs-on: ubuntu-latest
env:
# Force building/installing a static binary
STACKOPTS: "--ghc-options '-fPIC' --flag NGLess:embed"
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-version: "latest"

- name: Install GCC8/G++-8
run: |
sudo apt update
sudo apt install -y g++-8
- name: Setup stack
run: stack setup

- name: Build Static NGLess and dependencies
run: make static CXX=g++-8

- name: Build NGLess modules
run: make modules

- name: Run tests
run: make check

- name: Install NGLess
run: make install CXX=g++-8 prefix=ngless_path/ngless

- name: Upload
uses: actions/upload-artifact@v2
with:
name: ngless_install
path: ngless_path/ngless

0 comments on commit 926bfc5

Please sign in to comment.