Switch build to clang for linux. Mingw binaries isn't working with vanilla hlds / listenserver. And i'm too lazy to debug them. For consistency reason, linux switched clang, so we're only have clang for linux & osx and msvc for windows.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: YaPB Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linux:
|
|
name: Full Build
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Meson
|
|
shell: bash
|
|
run: |
|
|
meson setup build_x86_win32 --cross-file=/actions/meson/windows-msvc-32bit.txt -Db_vscrt=mt
|
|
meson setup build_x86_macos --cross-file=/actions/meson/darwin-clang-32bit.txt
|
|
CXX=clang meson setup build_x86_linux
|
|
|
|
- name: Build Bot
|
|
shell: bash
|
|
run: |
|
|
ninja -C build_x86_win32 -v
|
|
ninja -C build_x86_macos -v
|
|
ninja -C build_x86_linux -v
|
|
|
|
- name: Build Package
|
|
shell: bash
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
meson setup dist
|
|
ninja -C dist package
|
|
ls -la dist/yapb-*
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
name: Upload Artifacts
|
|
with:
|
|
name: yapb.zip
|
|
path: |
|
|
build_x86_win32/yapb.dll
|
|
build_x86_linux/yapb.so
|
|
build_x86_macos/yapb.dylib
|
|
|