Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA CI build #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,macos-latest]
steps:
- uses: actions/checkout@v2
- name: Pre-reqs (apt)
if: runner.os == 'Linux'
run: |
sudo apt-get -y update && sudo apt-get install build-essential \
libpng-dev zlib1g-dev libx11-dev libxaw7-dev libxt-dev x11proto-core-dev libgif-dev
- name: Pre-reqs (homebrew)
if: runner.os == 'macOS'
run: |
brew reinstall gfortran
brew install automake \
libpng \
libxt
- name: Bootstrap
shell: bash
run: |
sh ./bootstrap
- name: Configure
shell: bash
run: |
sh ./configure
- name: Make
if: runner.os == 'Linux'
shell: bash
run: |
make
- name: Make
if: runner.os == 'macOS'
shell: bash
run: |
make LDFLAGS="$(pkg-config --libs --static libpng xt)"