ci: Add building CUI
This commit is contained in:
parent
58a0a4ba9f
commit
c0b308a2ce
|
@ -0,0 +1,30 @@
|
|||
name: CUI on macOS
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Export environment valuables
|
||||
run: export
|
||||
|
||||
- name: Print clang version
|
||||
run: g++ -v
|
||||
|
||||
# Build
|
||||
- name: Build CUI
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive apk
|
||||
- name: Archive CUI
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill-for-macos
|
||||
path: src/sanmill
|
|
@ -0,0 +1,33 @@
|
|||
name: CUI on Ubuntu
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Export environment valuables
|
||||
run: export
|
||||
|
||||
- name: Print g++ version
|
||||
run: g++ -v
|
||||
|
||||
- name: Create App version
|
||||
run: git fetch --tags; git tag; git log -n1; bash -x ./version.sh
|
||||
|
||||
# Build
|
||||
- name: Build CUI
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive apk
|
||||
- name: Archive CUI
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill-for-linux
|
||||
path: src/sanmill
|
|
@ -0,0 +1,30 @@
|
|||
name: CUI on Windows
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Cygwin
|
||||
uses: egor-tensin/setup-cygwin@v3
|
||||
with:
|
||||
platform: x64
|
||||
packages: make gcc-g++
|
||||
|
||||
# Build
|
||||
- name: Build CUI
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive apk
|
||||
- name: Archive CUI
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill-for-cygwin
|
||||
path: src/sanmill.exe
|
Loading…
Reference in New Issue