Skip to content

Add initial build workflow #4

Add initial build workflow

Add initial build workflow #4

Workflow file for this run

name: IRAF macOS build
on: [push, pull_request]
jobs:
build:
runs-on: macos-14
env:
iraf: ${{ github.workspace }}/src/
TERM: ansi
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout IRAF
uses: actions/checkout@v3
with:
repository: iraf-community/iraf
path: ${{ env.iraf }}
- name: Build IRAF
run: |
make -C src IRAFARCH=macos64 CFLAGS="-g -O2"
- name: Run tests
run: |
make -C src test
- name: Installation
run: |
mkdir install
make -C src DESTDIR=`pwd`/install
- name: Create distribution file
run: |
tar cvf iraf-v2.17.1_macos.tar.gz -C install .