From 1ec48b4e851110decd3edd43cf5c33d763c4a75a Mon Sep 17 00:00:00 2001 From: 12core1 <12533753+visnkmr@users.noreply.github.com> Date: Mon, 28 Aug 2023 00:43:41 +0530 Subject: [PATCH] target more version tryout --- .github/workflows/release.yml | 49 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f659ba8..43f5e03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,37 +49,36 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + settings: + - host: macos-latest + target: x86_64-apple-darwin + os: darwin + arch: amd64 + - host: macos-latest + target: aarch64-apple-darwin + os: darwin + arch: arm64 + - host: windows-latest + target: x86_64-pc-windows-msvc + arch: amd64 + - host: ubuntu-latest + target: x86_64-unknown-linux-gnu + os: linux + arch: amd64 + - host: ubuntu-latest + target: aarch64-unknown-linux-gnu + os: linux + arch: arm64 - runs-on: ${{ matrix.platform }} + name: ${{ matrix.settings.target }} + runs-on: ${{ matrix.settings.host }} + steps: - # Windows scripting isn't the same. - - name: Get Variables (Windows) - run: | - echo "$env:GITHUB_ENV" - echo ("TAG=" + $env:GITHUB_REF.replace('refs/heads/', '')) >> $env:GITHUB_ENV - echo "CLI_PATH=perlink.exe" >> $env:GITHUB_ENV - echo "OS=Windows" >> $env:GITHUB_ENV - if: matrix.os == 'windows-latest' - - - name: Get Variables (MacOS) - run: | - echo "TAG=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - echo "CLI_PATH=perlink" >> $GITHUB_ENV - echo "OS=MacOS" >> $GITHUB_ENV - if: matrix.os == 'macos-latest' - - - name: Get Variables (Linux) - run: | - echo "TAG=$(echo $GITHUB_REF | sed 's/^refs\/heads\///')" >> $GITHUB_ENV - echo "CLI_PATH=perlink" >> $GITHUB_ENV - echo "OS=Linux-GNU" >> $GITHUB_ENV - if: matrix.os == 'ubuntu-latest' - uses: actions/checkout@v3 - name: install Rust stable uses: dtolnay/rust-toolchain@stable - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-20.04' + if: matrix.platform == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf