Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Jun 1, 2024
1 parent d07ca77 commit 231f716
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name:
name: Build and Release

on:
workflow_dispatch:
Expand All @@ -11,7 +11,9 @@ jobs:
matrix:
target:
- x86_64-pc-windows-gnu
- aarch64-pc-windows-gnu
# - aarch64-pc-windows-gnu
# - x86_64-unknown-linux-gnu
# - x86_64-apple-darwin

steps:
- name: "Checkout"
Expand All @@ -27,7 +29,7 @@ jobs:
- name: "Set up Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
toolchain: stable
targets: ${{ matrix.target }}

- name: "Install Dependencies"
Expand All @@ -38,9 +40,15 @@ jobs:

- name: "Zip"
run: |
cp target/${{ matrix.target }}/release/dygma-layer-switcher.exe .
mv dygma-layer-switcher.exe "Dygma Layer Switcher.exe"
zip dls-${{ env.PACKAGE_VERSION }}-${{ matrix.target }}.zip "Dygma Layer Switcher.exe"
if [[ "${{ matrix.target }}" == *"windows"* ]]; then
executable_name="dygma-layer-switcher.exe"
cp target/${{ matrix.target }}/release/dygma-layer-switcher.exe .
else
executable_name="dygma-layer-switcher"
cp target/${{ matrix.target }}/release/dygma-layer-switcher .
fi
mv $executable_name "Dygma Layer Switcher"
zip dls-${{ env.PACKAGE_VERSION }}-${{ matrix.target }}.zip "Dygma Layer Switcher"
env:
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}

Expand Down

0 comments on commit 231f716

Please sign in to comment.