Skip to content

Commit

Permalink
Add msys2 and mingw to windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 12, 2024
1 parent fe0a2a4 commit b279f7f
Showing 1 changed file with 78 additions and 37 deletions.
115 changes: 78 additions & 37 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,82 @@ jobs:
run: |
meson test -C builddir || cat builddir\meson-logs\testlog.txt
#MSYS2:
#runs-on: windows-latest
#strategy:
#fail-fast: false
#matrix:
#platform: ['UCRT64', 'CLANG64']
#steps:
#- uses: actions/checkout@v4
#with:
#fetch-depth: 0

#- uses: msys2/setup-msys2@v2
#with:
#msystem: ${{matrix.platform}}
#install: >-
#bison
#dos2unix
#git
#pacboy: >-
#cc:p
#cmake:p
#ninja:p
#pkgconf:p
#python-certifi:p
#python-pip:p
## Make sure Python is updated to >=3.11 (fix https://github.com/msys2/MINGW-packages/issues/17415).
#update: true

#- name: Install packages
#shell: msys2 {0}
#run: |
#python -m pip install --pre meson

#- name: Sanity Checks
#shell: msys2 {0}
#run: |
#python tools/sanity_checks.py
MSYS2:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
platform: ['UCRT64', 'CLANG64']
steps:
- uses: actions/checkout@v4

- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.platform}}
install: >-
bison
dos2unix
git
pacboy: >-
cc:p
cmake:p
ninja:p
pkgconf:p
python-certifi:p
python-pip:p
# Make sure Python is updated to >=3.11 (fix https://github.com/msys2/MINGW-packages/issues/17415).
update: true

- name: Install packages
shell: msys2 {0}
run: |
python -m pip install --pre meson
- name: Configure
run: meson setup builddir -Ddefault_library=static -Db_sanitize=none

- name: Build
run: meson compile -C builddir

- name: Test
run: |
meson test -C builddir || cat builddir\meson-logs\testlog.txt
mingw:
name: ${{ matrix.build.os }}
strategy:
fail-fast: false
matrix:
build:
- os: windows-latest
runs-on: ${{ matrix.build.os }}
steps:
- uses: actions/checkout@v4

- name: Show info
run: |
echo '${{ toJSON(matrix) }}'
#- name: Setup Python
#uses: actions/setup-python@v5
#with:
#python-version: '3.x'

- name: Install Meson
run: python -m pip install --pre meson

- name: Install MinGW
uses: egor-tensin/setup-mingw@v2
with:
version: 12.2.0

- name: Configure
run: meson setup builddir -Ddefault_library=static -Db_sanitize=none

- name: Build
run: meson compile -C builddir

- name: Test
run: |
meson test -C builddir || cat builddir\meson-logs\testlog.txt

0 comments on commit b279f7f

Please sign in to comment.