diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e971cf3..190706f5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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: @@ -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'