We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2caa654 + c2eec54 commit ddb3f4fCopy full SHA for ddb3f4f
1 file changed
.github/workflows/build-artifacts.yml
@@ -0,0 +1,39 @@
1
+name: Build Library Artifacts
2
+
3
+concurrency:
4
+ group: "${{github.workflow}}-${{github.ref}}"
5
+ cancel-in-progress: true
6
7
+on:
8
+ release:
9
+ types: [created]
10
+ workflow_dispatch:
11
12
+jobs:
13
+ build:
14
+ strategy:
15
+ matrix:
16
+ os: [ubuntu-latest, macos-latest]
17
+ runs-on: ${{ matrix.os }}
18
19
+ steps:
20
+ - uses: actions/checkout@v3
21
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: '3.3'
26
+ bundler-cache: true
27
28
+ - name: Build library
29
+ run: bundle exec rake compile
30
31
+ - name: Upload to release
32
+ if: github.event_name == 'release'
33
+ env:
34
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
+ uses: softprops/action-gh-release@v1
36
37
+ files: |
38
+ build/libprism.so
39
+ build/libprism.dylib
0 commit comments