From 3ee778a1f5667e070861edf94bcd5ae3a541470b Mon Sep 17 00:00:00 2001 From: jeefo Date: Wed, 11 Nov 2020 16:56:12 +0300 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f7c1690 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: YaPB Build + +on: [push, pull_request] + +jobs: + linux: + name: Full Build + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Setup Meson + shell: bash + run: | + meson setup build_x86_win32 --cross-file=/actions/meson/linux-mingw-w64-32bit.txt + meson setup build_x86_macos --cross-file=/actions/meson/darwin-clang-32bit.txt + 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 +