Save build checksums in file names

This commit is contained in:
klzgrad 2021-05-25 21:50:39 +08:00
parent 84c9a7cfdb
commit 9d8a70c167

View File

@ -143,11 +143,12 @@ jobs:
asset_path: ${{ env.BUNDLE }}.tar.xz
asset_name: ${{ env.BUNDLE }}.tar.xz
asset_content_type: application/octet-stream
- run: openssl sha256 out/Release/naive >../${{ env.BUNDLE }}.sha256sum.txt
- run: openssl sha256 out/Release/naive >sha256sum.txt
- run: echo "SHA256SUM=$(cut -d' ' -f2 sha256sum.txt)" >>$GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: sha256sums
path: ${{ env.BUNDLE }}.sha256sum.txt
name: ${{ github.job }}-${{ matrix.arch }}-sha256 ${{ env.SHA256SUM }}
path: src/sha256sum.txt
android:
needs: cache-toolchains-posix
runs-on: ubuntu-latest
@ -212,11 +213,12 @@ jobs:
asset_path: ${{ env.BUNDLE }}.tar.xz
asset_name: ${{ env.BUNDLE }}.tar.xz
asset_content_type: application/octet-stream
- run: openssl sha256 out/Release/naive >../${{ env.BUNDLE }}.sha256sum.txt
- run: openssl sha256 out/Release/naive >sha256sum.txt
- run: echo "SHA256SUM=$(cut -d' ' -f2 sha256sum.txt)" >>$GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: sha256sums
path: ${{ env.BUNDLE }}.sha256sum.txt
name: ${{ github.job }}-${{ matrix.arch }}-sha256 ${{ env.SHA256SUM }}
path: src/sha256sum.txt
win:
needs: cache-toolchains-win
runs-on: windows-latest
@ -276,11 +278,12 @@ jobs:
asset_path: ${{ env.BUNDLE }}.zip
asset_name: ${{ env.BUNDLE }}.zip
asset_content_type: application/octet-stream
- run: openssl sha256 out/Release/naive.exe >../${{ env.BUNDLE }}.sha256sum.txt
- run: openssl sha256 out/Release/naive.exe >sha256sum.txt
- run: echo "SHA256SUM=$(cut -d' ' -f2 sha256sum.txt)" >>$GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: sha256sums
path: ${{ env.BUNDLE }}.sha256sum.txt
name: ${{ github.job }}-${{ matrix.arch }}-sha256 ${{ env.SHA256SUM }}
path: src/sha256sum.txt
mac:
needs: cache-toolchains-mac
runs-on: macos-latest
@ -329,11 +332,12 @@ jobs:
asset_path: ${{ env.BUNDLE }}.tar.xz
asset_name: ${{ env.BUNDLE }}.tar.xz
asset_content_type: application/octet-stream
- run: openssl sha256 out/Release/naive >../${{ env.BUNDLE }}.sha256sum.txt
- run: openssl sha256 out/Release/naive >sha256sum.txt
- run: echo "SHA256SUM=$(cut -d' ' -f2 sha256sum.txt)" >>$GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: sha256sums
path: ${{ env.BUNDLE }}.sha256sum.txt
name: ${{ github.job }}-${{ matrix.arch }}-sha256 ${{ env.SHA256SUM }}
path: src/sha256sum.txt
openwrt:
needs: cache-toolchains-posix
runs-on: ubuntu-latest
@ -453,8 +457,9 @@ jobs:
asset_path: ${{ env.BUNDLE }}.tar.xz
asset_name: ${{ env.BUNDLE }}.tar.xz
asset_content_type: application/octet-stream
- run: openssl sha256 out/Release/naive >../${{ env.BUNDLE }}.sha256sum.txt
- run: openssl sha256 out/Release/naive >sha256sum.txt
- run: echo "SHA256SUM=$(cut -d' ' -f2 sha256sum.txt)" >>$GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: sha256sums
path: ${{ env.BUNDLE }}.sha256sum.txt
name: ${{ github.job }}-${{ matrix.arch }}-sha256 ${{ env.SHA256SUM }}
path: src/sha256sum.txt