-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30b198e
commit b726623
Showing
2 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 | ||
|