Skip to content

Commit

Permalink
add linux-amd64-musl linux-arm-musl windows-x86
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Apr 29, 2022
1 parent aeb47c6 commit f7ee211
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
draft: false
prerelease: true

release_assets_amd64:
name: Release assets for AMD64
release_assets_native:
name: Build native executables
needs: create_release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-18.04
file: ./target/release/mcl-installer
args: --features rustls
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-amd64
Expand All @@ -49,6 +49,7 @@ jobs:
file: ./target/release/mcl-installer.exe
args: --features native-tls
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-windows-amd64.exe

steps:
- name: Checkout code
uses: actions/checkout@v1
Expand Down Expand Up @@ -83,38 +84,61 @@ jobs:
asset_path: ${{ matrix.file }}
asset_content_type: application/octet-stream

release_assets_arm:
name: Release assets for ARM
release_assets_cross:
name: Build cross-compile executables
needs: create_release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: aarch64-unknown-linux-gnu
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-aarch64

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: aarch64-linux-android
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-android-aarch64

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: arm-unknown-linux-gnueabi
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-arm

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: arm-linux-androideabi
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-android-arm

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: aarch64-unknown-linux-musl
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-aarch64-musl

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: x86_64-unknown-linux-musl
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-amd64-musl

- os: ubuntu-latest
file: mcl-installer
args: --features rustls
target: arm-unknown-linux-musleabi
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-arm-musl

- os: windows-latest
file: mcl-installer.exe
args: --features native-tls
target: i686-pc-windows-msvc
release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-windows-x86.exe

steps:
- name: Checkout code
uses: actions/checkout@v1
Expand All @@ -137,7 +161,7 @@ jobs:
- name: Compress binaries
uses: svenstaro/upx-action@v2
with:
file: ./target/${{ matrix.target }}/release/mcl-installer
file: ./target/${{ matrix.target }}/release/${{ matrix.file }}
strip: false
args: --best --lzma

Expand All @@ -148,7 +172,7 @@ jobs:
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_name: ${{ matrix.release_name }}
asset_path: ./target/${{ matrix.target }}/release/mcl-installer
asset_path: ./target/${{ matrix.target }}/release/${{ matrix.file }}
asset_content_type: application/octet-stream

release_assets_aarch64_macos:
Expand Down

0 comments on commit f7ee211

Please sign in to comment.