Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for x86 Windows machines #169

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ on:
jobs:
publish-tauri:
strategy:
fail-fast: true
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest] # macos-latest
arch: [i686-pc-windows-msvc, other] # ignored by cargo

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: check for invalid target
if: matrix.platform == 'ubuntu-latest' && matrix.arch == 'i686-pc-windows-msvc'
run: |
echo "::error arch=$arch::Invalid target for Ubuntu"
exit 1
env:
arch: ${{ matrix.arch }}
- name: setup node
uses: actions/setup-node@v1
with:
Expand All @@ -31,6 +39,11 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
- name: install and preset x86 deps
if: matrix.platform == 'windows-latest' && matrix.arch == 'i686-pc-windows-msvc'
run: |
rustup target add i686-pc-windows-msvc
echo "TAURI_ARGS=--target i686-pc-windows-msvc" >> $GITHUB_ENV
- name: import windows certificate
if: matrix.platform == 'windows-latest'
env:
Expand All @@ -50,6 +63,7 @@ jobs:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
args: ${{ env.TAURI_ARGS }}
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'v__VERSION__'
releaseBody: 'Please see https://github.com/WootingKb/wooting-macros/releases/tag/v__VERSION__ for full changelog'
Expand Down