Skip to content

Commit

Permalink
Merge pull request ruby#3391 from Shopify/add-libprism-artifacts
Browse files Browse the repository at this point in the history
Modify `build-artifacts.yml` to package libprism source instead
  • Loading branch information
paracycle authored Jan 10, 2025
2 parents 19cb622 + b8258ca commit 080304e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ on:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -28,12 +25,18 @@ jobs:
- name: Build library
run: bundle exec rake compile

- name: Package libprism source
run: |
mkdir -p build/libprism-src
cp -r src build/libprism-src/src
cp -r include build/libprism-src/include
cp Makefile build/libprism-src/Makefile
tar -czf build/libprism-src.tar.gz -C build libprism-src
- 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: build/libprism-src.tar.gz

0 comments on commit 080304e

Please sign in to comment.