Skip to content

Add initial build workflow #8

Add initial build workflow

Add initial build workflow #8

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: |
IRAFARCH=macos64 CFLAGS="-O2" make -C src
- name: Run tests
run: |
make -C src test
- name: Installation
run: |
mkdir install
make -C src DESTDIR=`pwd`/install install
- name: Create distribution file
run: |
tar cvf iraf-v2.17.1_macos.tar.gz -C install .
- name: Copy file via ssh
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add -v - <<< "${{ secrets.SSH_KEY }}"
scp -v iraf-v2.17.1_macos.tar.gz [email protected]:dist/