-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
name: IRAF macOS build
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: macOS 12 (Intel)
os: macos-12
- name: macOS 14 (M1)
os: macos-14
env:
TERM: ansi
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup XQuartz on macOS
run: |
wget https://github.com/XQuartz/XQuartz/releases/download/XQuartz-2.8.1/XQuartz-2.8.1.dmg
sudo hdiutil attach XQuartz-2.8.1.dmg
sudo installer -package /Volumes/XQuartz-2.8.1/XQuartz.pkg -target /
sudo rm -f /usr/local/include/tcl.h
- name: Build package
run: |
make -j 4
- name: Locally test package installation
run: |
cp iraf-*.pkg /tmp
sudo installer -pkg /tmp/iraf-*.pkg -target / -verbose
/usr/local/lib/iraf/test/run_tests /usr/local/lib/iraf/test/noao.astutil.md
- name: Test whether PyRAF runs
run: |
pip install pyraf
pyraf -c bench
- name: Copy file via ssh
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK
ssh-add -v - <<< "${{ secrets.SSH_KEY }}"
scp -o StrictHostKeyChecking=no iraf-*.pkg [email protected]:dist/