diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 09f48a7..6cce50d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,18 +33,45 @@ env: RUST_BACKTRACE: short TMP_BUILD_DIR: "./tmp/release" + + jobs: + release-build: name: Build & Publish Binaries timeout-minutes: 80 strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + include: + - os: windows-latest + target: x86_64-pc-windows-msvc + - os: windows-latest + target: i686-pc-windows-msvc + - os: windows-latest + target: aarch64-pc-windows-msvc + + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + - os: ubuntu-latest + target: aarch64-unknown-linux-gnu + - os: ubuntu-latest + target: arm-unknown-linux-gnueabihf + + - os: macos-latest + target: x86_64-apple-darwin + - os: macos-latest + target: aarch64-apple-darwin + fail-fast: false runs-on: ${{ matrix.os }} + env: + BUILD_TARGET: ${{ matrix.target }} + steps: - name: Install Rust uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} - name: Clean up and validate ${{ env.TAG_NAME }} tag name shell: bash @@ -57,7 +84,7 @@ jobs: if: ${{ matrix.os == 'windows-latest' }} shell: bash run: | - export arch=$(uname -m) + export "arch=$(echo ${BUILD_TARGET})" export os_type="windows-${arch}" echo "os_type=${os_type}" >> $GITHUB_ENV echo "extention=$(echo ".exe")" >> $GITHUB_ENV