-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.03 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/