Skip to content

Commit 6bd5730

Browse files
committed
Add Linux arm build
1 parent d5c7582 commit 6bd5730

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

.github/workflows/makefile.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
ubuntu-build:
12+
ubuntu-amd64-build:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
@@ -30,10 +30,34 @@ jobs:
3030
- name: upload
3131
uses: actions/upload-artifact@v4
3232
with:
33-
name: pdlua-ubuntu-pd${{ matrix.floatsize }}
33+
name: pdlua-ubuntu-amd64-pd${{ matrix.floatsize }}
3434
path: build
3535

36-
macos-build:
36+
ubuntu-arm64-build:
37+
runs-on: ubuntu-24.04-arm
38+
strategy:
39+
matrix:
40+
floatsize: [32, 64]
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
fetch-depth: 0
47+
48+
- name: install dependencies
49+
run: git clone --branch=0.56-2 --depth=1 https://github.com/pure-data/pure-data.git
50+
51+
- name: make
52+
run: make install PDDIR=./pure-data objectsdir=./build floatsize=${{ matrix.floatsize }} extension=linux-arm64-${{ matrix.floatsize }}.so
53+
54+
- name: upload
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: pdlua-ubuntu-arm64-pd${{ matrix.floatsize }}
58+
path: build
59+
60+
macos-universal-build:
3761
runs-on: macos-latest
3862
strategy:
3963
matrix:
@@ -56,10 +80,10 @@ jobs:
5680
- name: upload
5781
uses: actions/upload-artifact@v4
5882
with:
59-
name: pdlua-macos-pd${{ matrix.floatsize }}
83+
name: pdlua-macos-universal-pd${{ matrix.floatsize }}
6084
path: build
6185

62-
windows-build:
86+
windows-amd64-build:
6387
runs-on: windows-latest
6488
strategy:
6589
matrix:
@@ -100,15 +124,15 @@ jobs:
100124
- name: upload
101125
uses: actions/upload-artifact@v4
102126
with:
103-
name: pdlua-windows-pd${{ matrix.floatsize }}
127+
name: pdlua-windows-amd64-pd${{ matrix.floatsize }}
104128
path: build
105129

106130
# Big thanks to @tomara-x and @timothyschoen for showing me how to do this! -ag
107131

108132
github-release:
109133
if: github.ref_type == 'tag'
110134
runs-on: ubuntu-latest
111-
needs: [ubuntu-build, macos-build, windows-build]
135+
needs: [ubuntu-amd64-build, ubuntu-arm64-build, macos-universal-build, windows-amd64-build]
112136

113137
steps:
114138
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)