mirror of https://github.com/XEphem/XEphem.git
Fix Makefile for Apple Silicon M1 and add CI build
This commit is contained in:
parent
30e14f685e
commit
185f4b0202
|
|
@ -35,3 +35,20 @@ jobs:
|
||||||
run: make -C GUI/xephem
|
run: make -C GUI/xephem
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make -C tests
|
run: make -C tests
|
||||||
|
|
||||||
|
compile-apple-silicon:
|
||||||
|
runs-on: macos-14
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install OpenMotif
|
||||||
|
run: brew install openmotif && brew info openmotif
|
||||||
|
- name: Install groff
|
||||||
|
run: brew install groff && brew info groff
|
||||||
|
- name: Install OpenSSL
|
||||||
|
run: brew install openssl && brew info openssl
|
||||||
|
- name: Install XQuartz
|
||||||
|
run: brew install xquartz --cask && brew info xquartz
|
||||||
|
- name: Compile
|
||||||
|
run: make -C GUI/xephem
|
||||||
|
- name: Test
|
||||||
|
run: make -C tests
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,16 @@ MOTIFL = /usr/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For Linux and Apple OS X
|
# For Linux and Apple OS X
|
||||||
|
# /opt/homebrew is for modern Apple Silicon; the other paths, for older macOS.
|
||||||
|
|
||||||
UNAME_S = $(shell uname -s)
|
UNAME_S = $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
PLATI = -I/usr/local/opt/openssl@3/include -I/opt/X11/include
|
PLATI = -I/opt/homebrew/include \
|
||||||
PLATL = -L/usr/local/opt/openssl@3/lib -L/opt/X11/lib
|
-I/usr/local/opt/openssl@3/include \
|
||||||
|
-I/opt/X11/include
|
||||||
|
PLATL = -L/opt/homebrew/lib \
|
||||||
|
-L/usr/local/opt/openssl@3/lib \
|
||||||
|
-L/opt/X11/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue