-
-
Notifications
You must be signed in to change notification settings - Fork 230
63 lines (60 loc) · 1.83 KB
/
installer_windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2022-2023 René Ferdinand Rivera Morell
# Use, modification, and distribution are subject to the
# Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
name: "Installer: Windows"
on:
# Allow manual runs.
workflow_dispatch:
# Run on publishing of releases.
release: { types: [published] }
# And run on pushes, for main and release branches.
push:
branches: ["main", "release", "version/*"]
paths-ignore:
[
".circleci/**",
".cirrus.yml",
".drone.star",
".semaphore/**",
".travis.yml",
"appveyor.yml",
"azure-pipelines.yml",
".ci/azp-*.yml",
]
jobs:
wix:
strategy:
matrix:
include:
- { name: "Windows: Wix", image: "" }
name: ${{ matrix.name }}
runs-on: "windows-latest"
steps:
- name: "Checkout"
uses: actions/checkout@master
with: { path: "b2" }
- name: "Checkout"
uses: actions/checkout@master
with: { repository: "bfgroup/b2-pkg", path: "b2-pkg" }
- name: "Install"
run: |
choco install vswhere
- name: "Bootstrap"
run: |
cd "${{github.workspace}}/b2"
./bootstrap.bat
- name: "Build"
run: |
$env:path += ';' + "${{github.workspace}}/b2"
cd "${{github.workspace}}/b2-pkg"
b2 --debug-configuration --b2root="${{github.workspace}}/b2" -j1 -d+2 windows-wix
- name: "Upload"
uses: actions/upload-artifact@v3
with:
name: installer
path: "${{github.workspace}}\\b2-pkg\\stage\\*.msi*"
- name: "Publish"
uses: softprops/action-gh-release@v1
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
with:
files: "${{github.workspace}}\\b2-pkg\\stage\\*.msi*"