From 75dc8f7e7d40b7630e47257500df0cf864e87929 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Mon, 9 Oct 2023 15:26:13 +0200 Subject: [PATCH] Fix builds --- .github/workflows/release.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8de28978..016f4484 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,29 +76,22 @@ jobs: run: | cargo binstall cross -y - - name: Run tests - if: ${{ matrix.run-tests }} - uses: actions-rs/cargo@v1 - with: - command: test - args: --profile release-lto --target ${{ matrix.target }} -- --nocapture - - - name: Build binary target/${{ matrix.target }}/release/erc20-processor + - name: Build binary target/${{ matrix.target }}/release/erc20_processor run: | - ${{ matrix.build-with }} build --bin gftp --features=bin --profile release-lto --target ${{ matrix.target }} + ${{ matrix.build-with }} build --profile release-lto --target ${{ matrix.target }} - name: Gz asset run: | - mv target/${{ matrix.target }}/release-lto/gftp${{ matrix.exe }} target/${{ matrix.target }}/release-lto/erc20-processor${{ matrix.exe }} - tar -cf - -C target/${{ matrix.target }}/release-lto/ erc20-processor${{ matrix.exe }} | gzip -9 > erc20-processor.tar.gz - tar -cf - -C target/${{ matrix.target }}/release-lto/ erc20-processor${{ matrix.exe }} | xz -9 > erc20-processor.tar.xz + mv target/${{ matrix.target }}/release-lto/gftp${{ matrix.exe }} target/${{ matrix.target }}/release-lto/erc20_processor${{ matrix.exe }} + tar -cf - -C target/${{ matrix.target }}/release-lto/ erc20_processor${{ matrix.exe }} | gzip -9 > erc20_processor.tar.gz + tar -cf - -C target/${{ matrix.target }}/release-lto/ erc20_processor${{ matrix.exe }} | xz -9 > erc20_processor.tar.xz - name: Upload uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: erc20-processor.tar.gz - asset_name: erc20-processor-${{ matrix.os }}-${{ matrix.cpu }}.tar.gz + file: erc20_processor.tar.gz + asset_name: erc20_processor-${{ matrix.os }}-${{ matrix.cpu }}.tar.gz tag: ${{ github.ref }} overwrite: true body: "Gzipped binary for ${{ matrix.cpu }} ${{ matrix.os }}" @@ -107,8 +100,8 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: erc20-processor.tar.xz - asset_name: erc20-processor-${{ matrix.os }}-${{ matrix.cpu }}.tar.xz + file: erc20_processor.tar.xz + asset_name: erc20_processor-${{ matrix.os }}-${{ matrix.cpu }}.tar.xz tag: ${{ github.ref }} overwrite: true body: "Xzipped binary for ${{ matrix.cpu }} ${{ matrix.os }}"