fix: msvc build
build: switch to msvc. too much hassle with meson & windows cross-build
This commit is contained in:
parent
3487610746
commit
5563168800
2 changed files with 39 additions and 10 deletions
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
|||
types: [published]
|
||||
|
||||
jobs:
|
||||
builds:
|
||||
unix:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
|
|
@ -20,10 +20,6 @@ jobs:
|
|||
bin: yapb.so
|
||||
opts: CXX=gcc-11 CXX_LD=gold meson setup build
|
||||
|
||||
- name: windows-x86
|
||||
bin: yapb.dll
|
||||
opts: meson setup build --cross-file=x86-windows
|
||||
|
||||
- name: macos-x86
|
||||
bin: yapb.dylib
|
||||
opts: meson setup build --cross-file=x86-darwin
|
||||
|
|
@ -54,8 +50,41 @@ jobs:
|
|||
name: ${{ matrix.bin }}
|
||||
path: build/${{ matrix.bin }}
|
||||
|
||||
linux-aarch64:
|
||||
name: linux-aarch64
|
||||
windows:
|
||||
name: windows-x86
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- name: Setup MSBuild
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: amd64_x86
|
||||
|
||||
- name: Setup Meson
|
||||
run: |
|
||||
python -m pip install --upgrade meson ninja
|
||||
|
||||
- name: Configure Build
|
||||
run: |
|
||||
meson setup build
|
||||
|
||||
- name: Compile Source
|
||||
run: |
|
||||
meson compile -v -C build
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: yapb.dll
|
||||
path: build/yapb.dll
|
||||
|
||||
linux-arm64:
|
||||
name: linux-arm64
|
||||
|
||||
runs-on: self-hosted
|
||||
continue-on-error: true
|
||||
|
|
@ -88,7 +117,7 @@ jobs:
|
|||
|
||||
name: publish
|
||||
runs-on: ubuntu-latest
|
||||
needs: [builds]
|
||||
needs: [unix, windows, linux-arm64]
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue