Skip to content

Commit

Permalink
target more version tryout
Browse files Browse the repository at this point in the history
  • Loading branch information
visnkmr committed Aug 27, 2023
1 parent afaa1f1 commit 1ec48b4
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ec48b4

Please sign in to comment.