Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Calcitem | 40e6f0a026 |
|
@ -1,30 +0,0 @@
|
|||
name: CUI on macOS
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/*.cpp'
|
||||
|
||||
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
|
|
@ -1,33 +0,0 @@
|
|||
name: CUI on Ubuntu
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/*.cpp'
|
||||
|
||||
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
|
|
@ -1,30 +0,0 @@
|
|||
name: CUI on Windows
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/*.cpp'
|
||||
|
||||
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
|
|
@ -0,0 +1,79 @@
|
|||
name: CUI
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/*.cpp'
|
||||
|
||||
jobs:
|
||||
cygwin-g++:
|
||||
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 with cygwin-g++
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive
|
||||
- name: Archive
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill_cygwin-g++.exe
|
||||
path: src/sanmill.exe
|
||||
|
||||
linux-g++:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Export environment valuables
|
||||
run: export
|
||||
|
||||
- name: Print g++ version
|
||||
run: g++ -v
|
||||
|
||||
- name: Create version
|
||||
run: git fetch --tags; git tag; git log -n1; bash -x ./version.sh
|
||||
|
||||
# Build
|
||||
- name: Build with linux-g++
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive
|
||||
- name: Archive
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill_linux-g++
|
||||
path: src/sanmill
|
||||
|
||||
darwin-g++:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Export environment valuables
|
||||
run: export
|
||||
|
||||
- name: Print g++ version
|
||||
run: g++ -v
|
||||
|
||||
# Build
|
||||
- name: Build with darwin-g++
|
||||
run: cd src; make -j build ARCH=x86-64
|
||||
|
||||
# Archive
|
||||
- name: Archive
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sanmill_darwin-g++
|
||||
path: src/sanmill
|
|
@ -1,23 +0,0 @@
|
|||
name: Dart Analyze
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'src/ui/flutter_app/**'
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint flutter code
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v1
|
||||
- run: bash -x ./flutter-init.sh
|
||||
- run: cp -f ./src/ui/flutter_app/analysis_options.yaml ./
|
||||
- name: Analyze Flutter
|
||||
uses: ValentinVignal/action-dart-analyze@v0.11
|
||||
with:
|
||||
fail-on: 'format'
|
||||
working-directory: src/ui/flutter_app
|
|
@ -6,8 +6,25 @@ on:
|
|||
- 'src/ui/flutter_app/**'
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint flutter code
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v1
|
||||
- run: bash -x ./flutter-init.sh
|
||||
- run: cp -f ./src/ui/flutter_app/analysis_options.yaml ./
|
||||
- name: Analyze Flutter
|
||||
uses: ValentinVignal/action-dart-analyze@v0.11
|
||||
with:
|
||||
fail-on: 'format'
|
||||
working-directory: src/ui/flutter_app
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: linter
|
||||
|
||||
# Note that this workflow uses the latest stable version of the Dart SDK.
|
||||
# Docker images for other release channels - like dev and beta - are also
|
||||
|
|
Loading…
Reference in New Issue