Skip to content

Commit

Permalink
ci: fix a conditional expression
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed May 4, 2024
1 parent f2c0880 commit 23b9653
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
build:
strategy:
fail-fast: false
matrix:
mode:
- debug
Expand Down Expand Up @@ -51,7 +52,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
path: |
build/packages/l/levilamina/windows/x64/${{ matrix.mode }}/bin/
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
build:
strategy:
fail-fast: false
matrix:
mode:
- debug
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
path: |
build/packages/l/levilamina/windows/x64/${{ matrix.mode }}/bin/
Expand Down Expand Up @@ -90,24 +91,24 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
name: levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64-${{ github.sha }}
path: artifact

- run: |
cp CHANGELOG.md COPYING COPYING.LESSER README.md artifact/
- run: |
zip -r ../levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64.zip *
zip -r ../levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64.zip *
working-directory: artifact
- id: calculate-sha256
run: |
echo sha256=$(sha256sum levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64.zip | awk '{print $1}') >> $GITHUB_OUTPUT
echo sha256=$(sha256sum levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64.zip | awk '{print $1}') >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v1
with:
append_body: true
body: |-
| levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64.zip | ${{ steps.calculate-sha256.outputs.sha256 }} |
| levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64.zip | ${{ steps.calculate-sha256.outputs.sha256 }} |
files: |
levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == 'true' && '-mimalloc' || '' }}-windows-x64.zip
levilamina-${{ matrix.mode }}${{ matrix.use_mimalloc == true && '-mimalloc' || '' }}-windows-x64.zip

0 comments on commit 23b9653

Please sign in to comment.