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 ff41479
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

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=macintel CFLAGS="-g -O2 --target=x86_64" LDLAGS="--target=x86_64"
make -C src IRAFARCH=macarm CFLAGS="-g -O2 --target=aarch64" LDLAGS="--target=aarch64"
- 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 ff41479

Please sign in to comment.