Add msys2 option #124
Workflow file for this run
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: Selftest | |
on: | |
pull_request: | |
# branches: | |
# - disabled | |
jobs: | |
setup-alire: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-12, macos-14, windows-latest] | |
target: [stable, nightly, source] | |
msys2: [true, false] | |
# A bit redundant for non-windows platforms, but let's keep things | |
# simple for the very rare times this workflow is run | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup stable | |
uses: ./ # This uses the action code in the current PR | |
if: matrix.target == 'stable' | |
with: | |
msys2: ${{ matrix.msys2 }} | |
cache: false | |
# We test without cache, as caching is tested in a separate workflow. | |
# This way we make sure the cache isn't hiding any issue. | |
- name: Setup nightly | |
uses: ./ | |
if: matrix.target == 'nightly' | |
with: | |
msys2: ${{ matrix.msys2 }} | |
version: nightly | |
cache: false | |
- name: Setup from source (master) | |
uses: ./ | |
if: matrix.target == 'source' | |
with: | |
msys2: ${{ matrix.msys2 }} | |
branch: master | |
cache: false | |
# Verify proper builds | |
- run: alr -n version | grep "os:" | grep LINUX | |
if: matrix.os == 'ubuntu-latest' | |
shell: bash | |
- run: alr -n version | grep "os:" | grep MACOS | |
if: matrix.os == 'macos-latest' | |
shell: bash | |
- run: alr -n version | grep "os:" | grep WINDOWS | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
# Verify proper msys2 behavior | |
- run: alr -n version | grep "distribution:" | grep MSYS2 | |
if: matrix.os == 'windows-latest' && matrix.msys2 == true | |
shell: bash | |
- run: alr -n version | grep "distribution:" | grep UNKNOWN | |
if: matrix.os == 'windows-latest' && matrix.msys2 == false | |
shell: bash |