Skip to content

Commit

Permalink
ci(actions): Expand build matrix with new embedded options
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 9, 2024
1 parent 8788856 commit 931f27d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
matrix:
configuration:
- [ 'dynamic', '' ]
- [ 'embeded', '--enable-embeded-resources' ]
- [ 'system', '--with-system-lua-sources' ]
- [ 'embeded', '--enable-embeded-resources' ]
- [ 'static', '--enable-embeded-resources --disable-shared --enable-static' ]
runs-on: ubuntu-22.04
name: Build Ubuntu ${{ matrix.configuration[0] }}
steps:
Expand Down Expand Up @@ -65,19 +66,19 @@ jobs:
with:
name: sile-${{ env.VERSION }}
path: sile-${{ env.VERSION }}.zip
- name: Append architecture to embeded binary
if: ${{ matrix.configuration[0] == 'embeded' }}
- name: Append architecture to static binary
if: ${{ matrix.configuration[0] == 'static' }}
run: |
cp sile sile-${{ env.CARCH }}
- name: Upload embeded binary artifact
if: ${{ matrix.configuration[0] == 'embeded' && !contains(github.ref, 'refs/tags/v') }}
- name: Upload static binary artifact
if: ${{ matrix.configuration[0] == 'static' && !contains(github.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@v4
with:
name: sile-${{ env.CARCH }}
path: sile-${{ env.CARCH }}
- name: Release
uses: softprops/action-gh-release@v1
if: matrix.configuration[0] == 'embeded' && github.repository == 'sile-typesetter/sile' && startsWith(github.ref, 'refs/tags/v')
if: matrix.configuration[0] == 'static' && github.repository == 'sile-typesetter/sile' && startsWith(github.ref, 'refs/tags/v')
with:
body_path: sile-${{ env.VERSION }}.md
files: |
Expand Down

0 comments on commit 931f27d

Please sign in to comment.