Skip to content

Commit

Permalink
Build Windows installer using cargo-wix.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinling committed Jul 3, 2024
1 parent f08089f commit 5c30c40
Show file tree
Hide file tree
Showing 2 changed files with 285 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
run: brew install gtk4 pkg-config
if: matrix.os == 'macos-latest'

- name: Install cargo-wix (Windows)
uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-wix
if: matrix.os == 'windows-latest'

- name: Install dependencies (Windows)
uses: lukka/run-vcpkg@v11
with:
Expand Down Expand Up @@ -98,6 +104,10 @@ jobs:
with:
run: cargo test

- name: Build installer (Windows)
run: cargo wix --no-build --nocapture -v
if: matrix.os == 'windows-latest'

- uses: actions/upload-artifact@v2
with:
name: Packetry ${{ matrix.os }}
Expand Down
Loading

0 comments on commit 5c30c40

Please sign in to comment.