Skip to content

Commit

Permalink
introduce bootstrap releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
obalaribe committed Jul 18, 2024
1 parent 5018a03 commit 1419a00
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/avail-light-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
include:
- os: ubuntu-20.04
workspace: avail-light-client
binary: avail-light
rust_target: x86_64-unknown-linux-gnu
output_name: avail-light-linux-amd64
extra_setup: |
rustup target add x86_64-unknown-linux-gnu
- os: ubuntu-20.04
workspace: avail-light-client
binary: avail-light
rust_target: aarch64-unknown-linux-gnu
output_name: avail-light-linux-arm64
extra_setup: |
Expand All @@ -34,23 +32,20 @@ jobs:
- os: macos-14
workspace: avail-light-client
binary: avail-light
rust_target: aarch64-apple-darwin
output_name: avail-light-apple-arm64
extra_setup: |
rustup target add aarch64-apple-darwin
- os: macos-13
workspace: avail-light-client
binary: avail-light
rust_target: x86_64-apple-darwin
output_name: avail-light-apple-x86_64
extra_setup: |
rustup target add x86_64-apple-darwin
- os: windows-latest
workspace: avail-light-client
binary: avail-light
rust_target: x86_64-pc-windows-msvc
output_name: avail-light-x86_64-pc-windows-msvc.exe
extra_setup: |
Expand All @@ -75,7 +70,7 @@ jobs:
run: |
${{ matrix.extra_setup }}
cargo build --profile maxperf --target=${{ matrix.rust_target }} -p ${{ matrix.workspace }}
mv target/${{ matrix.rust_target }}/maxperf/${{ matrix.binary }} target/${{ matrix.rust_target }}/maxperf/${{ matrix.output_name }}
mv target/${{ matrix.rust_target }}/maxperf/${{ matrix.workspace }} target/${{ matrix.rust_target }}/maxperf/${{ matrix.output_name }}
pushd target/${{ matrix.rust_target }}/maxperf/
tar czf ${{ matrix.output_name }}.tar.gz ${{ matrix.output_name }}
Expand All @@ -85,7 +80,7 @@ jobs:
run: |
${{ matrix.extra_setup }}
cargo build --profile maxperf --target=${{ matrix.rust_target }} -p ${{ matrix.workspace }}
Move-Item -Path "target\${{ matrix.rust_target }}\maxperf\${{ matrix.binary }}.exe" -Destination "target\${{ matrix.rust_target }}\maxperf\${{ matrix.output_name }}"
Move-Item -Path "target\${{ matrix.rust_target }}\maxperf\${{ matrix.workspace }}.exe" -Destination "target\${{ matrix.rust_target }}\maxperf\${{ matrix.output_name }}"
Push-Location -Path "target\${{ matrix.rust_target }}\maxperf\"
Compress-Archive -Path "${{ matrix.output_name }}" -DestinationPath "${{ matrix.output_name }}.tar.gz"
Expand Down

0 comments on commit 1419a00

Please sign in to comment.