forked from iraf-community/iraf
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.91 KB
/
citest.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
58
59
60
61
62
63
64
65
name: IRAF CI test
on: [push, pull_request]
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
env:
CFLAGS: ${{ matrix.cflags }}
LDFLAGS: ${{ matrix.ldflags }}
strategy:
matrix:
include:
- name: Ubuntu latest x86_64
os: ubuntu-latest
cflags: -O2 -g -Wall -Wno-stringop-truncation -Wno-unused-result -Wno-format-overflow -Wno-parentheses
- name: Ubuntu 20.04 Focal i386
os: ubuntu-20.04
irafarch: linux
ldflags: -m32
cflags: -m32 -O2 -g -Wall -Wno-stringop-truncation -Wno-unused-result -Wno-format-overflow -Wno-parentheses
- name: macOS x86_64
os: macos-latest
cflags: -O2 -g -Wall -Wno-logical-op-parentheses
- name: macOS arm64
os: macos-14
cflags: -O2 -g -Wall -Wno-logical-op-parentheses
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dependencies on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
if [ ${LDFLAGS} == '-m32' ] ; then
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y gcc-multilib libcurl4-openssl-dev:i386 libexpat1-dev:i386 libreadline-dev:i386 zlib1g-dev:i386
else
sudo apt-get update -y
sudo apt-get install -y build-essential libcurl4-openssl-dev libexpat1-dev libreadline-dev zlib1g-dev
fi
- name: Build IRAF
run: |
if [ "${{ matrix.irafarch }}" ] ; then export IRAFARCH=${{ matrix.irafarch }}; fi
make
- name: Run tests
run: |
make test
- name: Installation test
run: |
sudo make install
/usr/local/lib/iraf/test/run_tests /usr/local/lib/iraf/test/noao.astutil.md
cd pkg/images
xc -d -c x_images.x