test all artifact flavors #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'test all artifact flavors' | |
on: # since this is expensive, require a manual trigger | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
flavor: ['minimal', 'makepkg-git', 'build-installers', 'full'] | |
architecture: ['i686', 'x86_64'] | |
exclude: | |
- flavor: minimal | |
architecture: i686 | |
- flavor: makepkg-git | |
architecture: i686 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: run in-place | |
uses: ./ | |
with: | |
flavor: ${{ matrix.flavor }} | |
architecture: ${{ matrix.architecture }} | |
- name: build installer | |
if: matrix.flavor == 'build-installers' | |
shell: bash | |
run: | | |
# clone build-extra | |
git clone --depth 1 --single-branch -b main https://github.com/git-for-windows/build-extra && | |
# build installer | |
./build-extra/installer/release.sh --output=$PWD/installer-${{ matrix.architecture }} 0-test | |
- uses: actions/upload-artifact@v4 | |
if: matrix.flavor == 'build-installers' | |
with: | |
name: installer-${{ matrix.architecture }} | |
path: installer-${{ matrix.architecture }} |