-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (49 loc) · 1.3 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
paths-ignore:
- '*.md'
- '.gitignore'
pull_request:
paths-ignore:
- '*.md'
- '.gitignore'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
#fail-fast: false
matrix:
runs-on: [windows-latest] #, ubuntu-latest]
# include:
# - runs-on: ubuntu-latest
# file_extension: .sh
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
#- name: Setup (Linux)
# if: matrix.runs-on == 'ubuntu-latest'
# run: |
# chmod +x *.sh
# sudo apt-get -y update
# sudo apt-get -y install meson ninja-build
- name: Build PINE (Windows)
working-directory: pine\bindings\c
if: matrix.runs-on == 'windows-latest'
run: |
python -m pip install meson ninja
meson setup "build" --vsenv
meson compile -C "build"
cp "build\pine_c.dll" "..\..\..\KAMI.Core"
- name: Build KAMI
run: ./build_publish${{ matrix.file_extension }}
- uses: actions/upload-artifact@v3
with:
name: KAMI-${{ runner.os }}
path: bin/publish
if-no-files-found: error