Skip to content

Commit 52eb0e0

Browse files
committed
Modify build-artifacts.yml to package libprism source
Instead of uploading the built `libprism.so` and `libprism.dylib`, which still requires headers files to be built, Prism can upload the full source, headers, and the Makefile as a tarball that can be used to build libprism from source. The reason default release artifacts are not enough is because some source and header files are generated through Prism's rake tasks.
1 parent 19cb622 commit 52eb0e0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build-artifacts.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest, macos-latest]
17-
runs-on: ${{ matrix.os }}
14+
runs-on: ubuntu-latest
1815

1916
steps:
2017
- uses: actions/checkout@v4
@@ -28,12 +25,18 @@ jobs:
2825
- name: Build library
2926
run: bundle exec rake compile
3027

28+
- name: Package libprism source
29+
run: |
30+
mkdir -p build/libprism
31+
cp -r src build/libprism/src
32+
cp -r include build/libprism/include
33+
cp Makefile build/libprism/Makefile
34+
tar -czf build/libprism.tar.gz -C build libprism
35+
3136
- name: Upload to release
3237
if: github.event_name == 'release'
3338
env:
3439
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3540
uses: softprops/action-gh-release@v2
3641
with:
37-
files: |
38-
build/libprism.so
39-
build/libprism.dylib
42+
files: build/libprism.tar.gz

0 commit comments

Comments
 (0)