Skip to content

Commit a0ea996

Browse files
Add macOS GH runner to test darwin/aarch64 build
Signed-off-by: Guillermo Rodríguez <grodriguez@ingelabs.com>
1 parent 23e9e2e commit a0ea996

1 file changed

Lines changed: 60 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
build:
7+
linux:
88
runs-on: ubuntu-24.04
99
steps:
1010
- name: Install dependencies
@@ -55,3 +55,62 @@ jobs:
5555
run: |
5656
cd malva
5757
JAVA=/usr/local/jamvm/bin/jamvm make check
58+
59+
macos:
60+
runs-on: macos-15
61+
steps:
62+
- name: Install dependencies
63+
run: |
64+
brew install automake libtool texinfo
65+
echo "$(brew --prefix libtool)/libexec/gnubin" >> $GITHUB_PATH
66+
# Work around https://github.com/Homebrew/homebrew-core/issues/53192
67+
ln -sf "$(brew --prefix gettext)/share/gettext/m4/"*.m4 "$(aclocal --print-ac-dir)/"
68+
69+
- name: Set up Java 8
70+
uses: actions/setup-java@v5
71+
with:
72+
distribution: zulu
73+
java-version: '8.0.482+8'
74+
check-latest: false
75+
76+
- name: Check out Classpath
77+
uses: actions/checkout@v4
78+
79+
- name: Build GNU Classpath
80+
run: |
81+
./autogen.sh
82+
./configure \
83+
--disable-gconf-peer \
84+
--enable-default-preferences-peer=file \
85+
--disable-gtk-peer \
86+
--disable-alsa \
87+
--disable-dssi \
88+
--disable-plugin \
89+
--disable-examples \
90+
--disable-tools \
91+
--disable-gjdoc
92+
make && sudo make install
93+
94+
- name: Check out JamVM
95+
uses: actions/checkout@v4
96+
with:
97+
repository: ingelabs/jamvm
98+
path: jamvm
99+
100+
- name: Build JamVM
101+
run: |
102+
cd jamvm
103+
NOCONFIGURE=1 ./autogen.sh
104+
./configure
105+
make && sudo make install
106+
107+
- name: Check out Malva
108+
uses: actions/checkout@v4
109+
with:
110+
repository: ingelabs/malva
111+
path: malva
112+
113+
- name: Run tests
114+
run: |
115+
cd malva
116+
JAVA=/usr/local/jamvm/bin/jamvm make check

0 commit comments

Comments
 (0)