Linux & 60HE+ Fix #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: [ created ] | |
jobs: | |
release: | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Linux-x86_64 | |
target: x86_64-unknown-linux-gnu | |
runner: ubuntu-latest | |
- name: macOS-universal | |
target: universal-apple-darwin | |
runner: macos-latest | |
- name: Windows-x86_64 | |
target: x86_64-pc-windows-msvc | |
runner: windows-latest | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Fetch Repository | |
uses: actions/checkout@v3 | |
- name: Update and Install Dependencies (Linux) | |
if: ${{ matrix.runner == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.1-dev libhidapi-dev libayatana-appindicator3-dev libsoup-3.0-dev javascriptcoregtk-4.1-dev | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update Rust Toolchain | |
run: rustup update stable | |
- name: Add Rust Target (macOS) | |
if: ${{ matrix.runner == 'macos-latest' }} | |
run: rustup target add aarch64-apple-darwin | |
- name: Add Rust Target (Other) | |
if: ${{ matrix.runner != 'macos-latest' }} | |
run: rustup target add ${{ matrix.target }} | |
- name: Install Tauri CLI | |
run: cargo install --locked --git https://github.com/Shays-Forks/tauri.git tauri-cli | |
- name: Build Tauri Installers/Bundles/Images | |
uses: tauri-apps/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
with: | |
args: --target ${{ matrix.target }} | |
releaseId: ${{ github.event.release.id }} | |
tagName: ${{ github.ref_name }} | |
tauriScript: "cargo tauri" | |
- name: Build Portable Binary (Windows) | |
if: ${{ matrix.runner == 'windows-latest' }} | |
run: | | |
cargo build --target ${{ matrix.target }} | |
mv ./target/${{ matrix.target }}/debug/wooting-profile-switcher.exe ./target/${{ matrix.target }}/debug/wooting-profile-switcher_${{ github.ref_name }}_x64-portable.exe | |
- name: Upload Portable Binary (Windows) | |
if: ${{ matrix.runner == 'windows-latest' }} | |
run: bash -c 'gh release upload ${{ github.ref_name }} ./target/${{ matrix.target }}/debug/wooting-profile-switcher_${{ github.ref_name }}_x64-portable.exe --clobber' |