diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 95d42847a0..e4aa47f521 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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