From 4ea019e71e78f17589088493ef8ae245d60fa87f Mon Sep 17 00:00:00 2001 From: Emily Samp Date: Fri, 10 Jan 2025 09:38:24 -0600 Subject: [PATCH] Improve the `build-artifacts` GitHub action 1. Package the headers along with the binary 2. Package `libprism.a` instead of the dynamically built binary --- .github/workflows/build-artifacts.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 0b829bdec6..6c8b276e4c 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -28,12 +28,17 @@ jobs: - name: Build library run: bundle exec rake compile + - name: Package files + run: | + mkdir dist + cp -r include dist/ + cp build/libprism.a dist/ + tar -czf prism-${{ matrix.os }}.tar.gz -C dist . + - name: Upload to release if: github.event_name == 'release' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} uses: softprops/action-gh-release@v2 with: - files: | - build/libprism.so - build/libprism.dylib + files: prism-${{ matrix.os }}.tar.gz