Skip to content

Commit

Permalink
Add initial build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olebole committed Feb 28, 2024
1 parent 57dfc01 commit 0b482f5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

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: |
make -C src IRAFARCH=macos64 CFLAGS="-g -O2"
- name: Run tests
run: |
make -C src test
- name: Installation
run: |
mkdir install
make -C src DESTDIR=`pwd`/install
- name: Create distribution file
run: |
tar cvf iraf-v2.17.1_macos.tar.gz -C install .

0 comments on commit 0b482f5

Please sign in to comment.