Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 9, 2023
1 parent f902c6a commit 75dc8f7
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"

0 comments on commit 75dc8f7

Please sign in to comment.