diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6804193b..153976c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,8 +43,8 @@ jobs: strategy: fail-fast: false matrix: - os: ['macos-latest', 'ubuntu-22.04', 'windows-latest'] - rust: ['stable', '1.57'] + os: ['windows-latest'] + rust: ['stable'] runs-on: ${{ matrix.os }} @@ -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: @@ -75,6 +81,9 @@ jobs: doNotCache: false if: matrix.os == 'windows-latest' + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Set PKG_CONFIG (Windows) run: echo "PKG_CONFIG=$env:VCPKG_INSTALLED_DIR/x64-windows/tools/pkgconf/pkgconf.exe" | Out-File -FilePath $env:GITHUB_ENV -Append if: matrix.os == 'windows-latest' @@ -98,6 +107,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 }} diff --git a/wix/main.wxs b/wix/main.wxs new file mode 100644 index 00000000..b2542417 --- /dev/null +++ b/wix/main.wxs @@ -0,0 +1,391 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + +