Skip to content

Commit 4292ba9

Browse files
committed
ci: offer to build the full matrix of supported flavors
This lets us build some confidence whenever making big changes. It has to be triggered manually because it is actually quite expensive to run, therefore I want people to choose wisely whether or not to spend the electricity. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f97edd4 commit 4292ba9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/matrix.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'test all artifact flavors'
2+
on: # since this is expensive, require a manual trigger
3+
workflow_dispatch:
4+
5+
jobs:
6+
test:
7+
runs-on: windows-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
flavor: ['minimal', 'makepkg-git', 'build-installers', 'full']
12+
architecture: ['i686', 'x86_64']
13+
exclude:
14+
- flavor: minimal
15+
architecture: i686
16+
- flavor: makepkg-git
17+
architecture: i686
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: run in-place
21+
uses: ./
22+
with:
23+
flavor: ${{ matrix.flavor }}
24+
architecture: ${{ matrix.architecture }}
25+
- name: build installer
26+
if: matrix.flavor == 'build-installers'
27+
shell: bash
28+
run: |
29+
# clone build-extra
30+
git clone --depth 1 --single-branch -b main https://github.com/git-for-windows/build-extra &&
31+
# build installer
32+
./build-extra/installer/release.sh --output=$PWD/installer-${{ matrix.architecture }} 0-test
33+
- uses: actions/upload-artifact@v2
34+
if: matrix.flavor == 'build-installers'
35+
with:
36+
name: installer-${{ matrix.architecture }}
37+
path: installer-${{ matrix.architecture }}

0 commit comments

Comments
 (0)