Skip to content

Commit

Permalink
Checking MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
PerryWerneck committed Nov 1, 2024
1 parent 30b198e commit b726623
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/msys.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/wincheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: check-win64
on:
push:
branches: [ "win" ]
pull_request:
branches: [ "master" ]

jobs:
msys2-build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Fetch Sources
uses: actions/checkout@v3
with:
submodules: true
- name: Setup MSys
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: git dos2unix xz mingw-w64-x86_64-gcc pkgconf mingw-w64-x86_64-gettext mingw-w64-x86_64-meson gettext-devel
- name: Build MSys Package
run: |
dos2unix PKGBUILD.mingw
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
check-msvc:
# https://dvdhrm.github.io/2021/04/21/meson-msvc-github-actions/
runs-on: windows-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Python Dependencies
run: pip install meson ninja
- name: Prepare MSVC
uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
- name: Prepare Build
run: meson setup build
- name: Run Build
run: meson compile -v -C build vmdetect:static_library vmdetect:executable

0 comments on commit b726623

Please sign in to comment.