Add initial build workflow #7
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 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 - <<< "${{ secrets.SSH_KEY }}" | |
scp iraf-v2.17.1_macos.tar.gz [email protected]:dist/ |