Skip to content

Commit

Permalink
feat:add target
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed May 25, 2024
1 parent 368cbdf commit 4054892
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4054892

Please sign in to comment.