2022-01-16 21:05:41 -07:00
|
|
|
name: windows
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
# Set permissions at the job level.
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
windows:
|
2023-05-12 13:00:32 -06:00
|
|
|
runs-on: windows-2022
|
2022-01-16 21:05:41 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
steps:
|
2022-12-06 16:41:11 -07:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-16 21:05:41 -07:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-12-06 16:41:11 -07:00
|
|
|
- uses: actions/setup-python@v4
|
2022-01-16 21:05:41 -07:00
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
- name: Install dependencies
|
|
|
|
shell: powershell
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade meson
|
|
|
|
Invoke-WebRequest -Uri https://github.com/lexxmark/winflexbison/releases/download/v2.5.23/win_flex_bison-2.5.23.zip -OutFile win_flex_bison.zip
|
|
|
|
Expand-Archive -Path win_flex_bison.zip -DestinationPath bin
|
|
|
|
Write-Output ((Get-Location).ToString() + "./bin") | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
|
|
|
|
- name: Setup
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2023-05-12 13:00:32 -06:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2023-05-05 01:57:32 -06:00
|
|
|
meson setup --backend=vs -Denable-wayland=false -Denable-x11=false -Denable-docs=false -Denable-xkbregistry=false build
|
2022-01-16 21:05:41 -07:00
|
|
|
- name: Build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
2023-05-12 13:00:32 -06:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2022-01-16 21:05:41 -07:00
|
|
|
meson compile -C build
|
|
|
|
- name: Test
|
|
|
|
run:
|
|
|
|
meson test -C build --print-errorlogs
|