mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
windows: Add installer build
For distribution of Radicle on Windows machines, Windows Installer provides a well-known solution, that comes built in to the operating system. It also integrates with the Windows package manager WinGet. Provide an initial version of an `*.msi` build, and integrate it into GitHub actions to allow downloads via build artifacts.
This commit is contained in:
committed by
Fintan Halpenny
parent
c06b00e330
commit
5974fa32d0
@@ -19,7 +19,11 @@ jobs:
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 512
|
||||
fetch-tags: true
|
||||
filter: 'tree:0'
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
@@ -30,6 +34,17 @@ jobs:
|
||||
path: target
|
||||
key: ${{ matrix.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}-cargo-target
|
||||
- run: cargo build --workspace --verbose --all-features
|
||||
- if: runner.os == 'Windows'
|
||||
working-directory: windows
|
||||
run: |
|
||||
$env:RADICLE_VERSION = "$(.\version.ps1)"
|
||||
echo $env:RADICLE_VERSION
|
||||
dotnet build
|
||||
- if: runner.os == 'Windows'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: radicle-installer-${{ runner.arch }}-${{ github.sha }}-${{ github.job }}
|
||||
path: windows/bin/*/*.msi
|
||||
- if: runner.os != 'Windows'
|
||||
run: cargo test --workspace --verbose --all-features -- --nocapture
|
||||
- if: runner.os == 'Windows'
|
||||
|
||||
Reference in New Issue
Block a user