Add initial build workflow #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
IRAFARCH=macos64 CFLAGS="-g -O2" make -C src | |
- 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 . |