Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
864edc6
Update GlobalVar.cpp
mystringEmpty Jul 4, 2020
6434de6
Merge Update
w4123 Jul 22, 2020
5c270bc
Merge Update
w4123 Jul 22, 2020
e035708
Merge branch 'Shiki' into shiki_dev
w4123 Jul 22, 2020
6fa7ec8
Merge pull request #43 from Dice-Developer-Team/shiki_dev
w4123 Jul 22, 2020
50d53ba
Update README.md
w4123 Jul 22, 2020
04ad77e
Bump Version 2.4.0
w4123 Jul 23, 2020
55eb524
修复Admin使用指令退群时回复词引用
lunzhiPenxil Jul 27, 2020
814b138
统一风格
lunzhiPenxil Jul 27, 2020
a2a1765
Merge pull request #44 from lunzhiPenxil/Shiki-Debug
w4123 Jul 28, 2020
e8150f5
update blacklist
mystringEmpty Jul 29, 2020
7fc56e9
Merge pull request #46 from Dice-Developer-Team/dev
w4123 Jul 29, 2020
9a78367
Use GBK instead of GB18030 to circumvent wine bug
w4123 Jul 31, 2020
beb89ad
fix 2.4.0
mystringEmpty Aug 1, 2020
766bed1
update for Mirai
mystringEmpty Aug 3, 2020
9add9e5
对Mirai的一些适配
w4123 Aug 3, 2020
46cf73a
条件变量阻塞修复
mystringEmpty Aug 4, 2020
2cd682a
update thread
mystringEmpty Aug 4, 2020
6834493
fix DiceDir
mystringEmpty Aug 5, 2020
84b43be
update .log (error)
mystringEmpty Aug 6, 2020
9b502b0
Fix Build
w4123 Aug 6, 2020
6d6cd7f
Fix Appveyor
w4123 Aug 6, 2020
5e46960
Fix appveyor
w4123 Aug 6, 2020
55a1094
fix .log & .link
mystringEmpty Aug 7, 2020
0748e49
fix blacklist
mystringEmpty Aug 7, 2020
156ad80
Fix bug
w4123 Aug 9, 2020
9b469d2
fix {pc}
mystringEmpty Aug 9, 2020
fb2f401
Merge branch 'Shiki' of https://github.com/Dice-Developer-Team/Dice i…
mystringEmpty Aug 9, 2020
48364a1
fix GroupMemberInfo
mystringEmpty Aug 10, 2020
cad9608
update 566
mystringEmpty Aug 15, 2020
7d48197
update help
mystringEmpty Aug 21, 2020
dea7bbc
fix ResList
mystringEmpty Aug 29, 2020
0bf8790
Bug fix
w4123 Sep 1, 2020
e0ae88b
fix Bug
mystringEmpty Sep 4, 2020
e579638
update censor
mystringEmpty Sep 25, 2020
aeebea2
Update README.md
w4123 Sep 25, 2020
792ad41
update 2.4.1
mystringEmpty Oct 3, 2020
0fe7b53
fix admin censor
mystringEmpty Oct 14, 2020
8062da2
fix system remake
mystringEmpty Oct 17, 2020
13855d3
remove clrimg
mystringEmpty Oct 17, 2020
95e3b37
update 568
mystringEmpty Oct 24, 2020
e1e7bca
update 569
mystringEmpty Oct 27, 2020
dc249a5
release 2.4.2beta2
mystringEmpty Oct 27, 2020
3f45474
fix deck
mystringEmpty Oct 27, 2020
d4f8d74
Add coc conf 6
dkwingsmt Nov 15, 2020
84a3ba2
Fix conf
dkwingsmt Nov 15, 2020
b915b6f
Fix description
dkwingsmt Nov 17, 2020
e8b4309
Better dsc
dkwingsmt Nov 17, 2020
6e1cbbd
update 2.5.0
mystringEmpty Dec 4, 2020
3166d8e
fix QQAPI
mystringEmpty Jan 5, 2021
7771731
Merge remote-tracking branch 'upstream/Shiki' into coc-dg
dkwingsmt Jan 6, 2021
22bdadc
Merge pull request #49 from dkwingsmt/coc-dg
w4123 Jan 9, 2021
34aee49
Merge branch 'Shiki' of https://github.com/Dice-Developer-Team/Dice i…
mystringEmpty Jan 9, 2021
b212aca
update CharaCard
mystringEmpty Jan 24, 2021
21447b5
Create FUNDING.yml
w4123 Feb 2, 2021
cb2d1da
fix replyHidden
mystringEmpty Feb 3, 2021
1f74291
update GetRoorDir
mystringEmpty Feb 4, 2021
e23f117
Update Cross-Platform support
w4123 Feb 4, 2021
e31ae27
Merge branch 'Shiki' of https://github.com/Dice-Developer-Team/Dice i…
w4123 Feb 4, 2021
292aa57
Fix Compilation
w4123 Feb 4, 2021
fcae0e3
fix addFrq
mystringEmpty Feb 14, 2021
0d2de54
Use cmake for compilation
w4123 Feb 19, 2021
a309ad1
Update vcpkg.json
w4123 Feb 19, 2021
58c5f5c
Create cmake.yml
w4123 Feb 19, 2021
938a6cc
Update cmake.yml
w4123 Feb 19, 2021
235ecee
Update cmake.yml
w4123 Feb 19, 2021
5aa835e
Update cmake.yml
w4123 Feb 19, 2021
f97c668
Update cmake.yml
w4123 Feb 19, 2021
bc65cc3
Update cmake.yml
w4123 Feb 19, 2021
93cdf96
Update cmake.yml
w4123 Feb 19, 2021
e41ab35
Update cmake.yml
w4123 Feb 19, 2021
e664aab
Update cmake.yml
w4123 Feb 19, 2021
fa7b342
Update cmake.yml
w4123 Feb 19, 2021
045fa73
Update cmake.yml
w4123 Feb 19, 2021
281e661
Update cmake.yml
w4123 Feb 19, 2021
5663cae
Update cmake.yml
w4123 Feb 19, 2021
5ef5f08
Update cmake.yml
w4123 Feb 19, 2021
352cab8
Update cmake.yml
w4123 Feb 19, 2021
9674749
Update cmake.yml
w4123 Feb 19, 2021
3ad42ae
Update cmake.yml
w4123 Feb 19, 2021
d884e22
Update cmake.yml
w4123 Feb 19, 2021
7c5f86b
Update cmake.yml
w4123 Feb 20, 2021
2d75a49
Fix MacOS Compilation
w4123 Feb 20, 2021
05d6038
Update cmake.yml
w4123 Feb 20, 2021
89067f2
Update CMakeLists.txt
w4123 Feb 20, 2021
fb74b93
Update CMakeLists.txt
w4123 Feb 20, 2021
99b2c70
Add new triplets
w4123 Feb 20, 2021
155fdaf
Fix Compilation
w4123 Feb 20, 2021
f697472
Update cmake.yml
w4123 Feb 20, 2021
4ab3837
Update cmake.yml
w4123 Feb 20, 2021
0281ab9
Fix x64 build
w4123 Feb 21, 2021
f8d1dbb
Update cmake.yml
w4123 Feb 21, 2021
847a3ec
Update cmake.yml
w4123 Feb 21, 2021
00549dd
Update cmake.yml
w4123 Feb 21, 2021
84e81e0
Update cmake.yml
w4123 Feb 21, 2021
baaa760
[skip ci] Update CMakeLists.txt
w4123 Feb 21, 2021
7c765b1
Update cmake.yml
w4123 Feb 21, 2021
80b84ce
[skip ci] Update Readme.md
w4123 Feb 21, 2021
e563ac4
Add vcpkg as submodule
w4123 Feb 23, 2021
dbc6157
Update cmake.yml
w4123 Feb 23, 2021
bb3eaf8
Update cmake.yml
w4123 Feb 23, 2021
7b30d3f
Update cmake.yml
w4123 Feb 23, 2021
a62c3bf
Update README.md
w4123 Feb 23, 2021
a30524c
Update cmake.yml
w4123 Feb 23, 2021
b1f1fa6
Fix encoding bug
w4123 Feb 26, 2021
832c63d
Update submodule
w4123 Feb 26, 2021
4cfa4aa
fix cloud
mystringEmpty Mar 3, 2021
45048eb
fix CardBuild
mystringEmpty Mar 3, 2021
24a25e4
Update CharacterCard.h
mystringEmpty Mar 4, 2021
97ef74f
Fix a potential buffer overflow
w4123 Mar 5, 2021
525105c
Use inline variable instead of static variable
w4123 Mar 5, 2021
21bb1a3
Update CharacterCard.h
w4123 Mar 5, 2021
9dc6f5c
Fix potential initialization sequence conflict
w4123 Mar 5, 2021
1b27e6e
Use forward slashes instead of backward ones
w4123 Mar 5, 2021
e7bd0ca
Update minimum MacOS version required
w4123 Mar 6, 2021
7ba933f
Try fix android build
w4123 Mar 9, 2021
1b37ace
Update CMakeLists.txt
w4123 Mar 9, 2021
223e9ac
Update cmake.yml
w4123 Mar 9, 2021
e20f15f
Create codeql-analysis.yml
w4123 Mar 9, 2021
7fda033
Update codeql-analysis.yml
w4123 Mar 9, 2021
8534405
Explicitly enable OpenSSL
w4123 Mar 9, 2021
2e3252d
Merge branch 'Shiki' of https://github.com/w4123/Dice into Shiki
w4123 Mar 9, 2021
0e42704
Update vcpkg.json
w4123 Mar 9, 2021
edac139
Update vcpkg submodule
w4123 Mar 9, 2021
0765c52
Update submodule
w4123 Mar 9, 2021
111ab1f
Update Lua 5.4.2
w4123 Mar 9, 2021
f8f40e0
[skip ci] Update Security Analysis
w4123 Mar 9, 2021
8b423a7
Disable ARM64 Windows build
w4123 Mar 9, 2021
05beee4
[skip ci] Explicitly set build type
w4123 Mar 9, 2021
b31c195
Delete codacy-analysis.yml
w4123 Mar 9, 2021
78b5639
Strip Release Binary
w4123 Mar 11, 2021
f21c3df
Merge branch 'Shiki' of https://github.com/w4123/Dice into Shiki
w4123 Mar 11, 2021
179f0bb
Strip Release Binary
w4123 Mar 11, 2021
f591fb9
Strip Release Binary
w4123 Mar 11, 2021
6f8ea51
Strip Release Binary
w4123 Mar 11, 2021
c82258e
Update RDConstant.h
wozaiha Mar 11, 2021
399fa24
Update RDConstant.h
wozaiha Mar 11, 2021
14f8cf1
Update RDConstant.h
wozaiha Mar 11, 2021
a62ceb1
Use filesystem instead of raw string for crossplatform support
w4123 Mar 14, 2021
3124a6a
Fix Compilation
w4123 Mar 14, 2021
9e2777d
Fix random android regression
w4123 Mar 14, 2021
b048385
Merge pull request #51 from wozaiha/Shiki
w4123 Mar 14, 2021
04df850
Reduce the number of symbols exported
w4123 Mar 17, 2021
00deeae
Fix OSX Compilation
w4123 Mar 17, 2021
055ec88
Reduce the number of dependencies
w4123 Mar 17, 2021
b40daa1
fix strSelfName
mystringEmpty Mar 24, 2021
1b5619f
fix dismiss
mystringEmpty Mar 27, 2021
e553d95
Update notice
mystringEmpty Mar 29, 2021
3663418
Use a lower glibc version in Linux Builds (#52)
w4123 Apr 1, 2021
d19260a
Link fs library on GCC 8 and Clang 7-8
w4123 Apr 2, 2021
f66dbf9
update ConsoleTime
mystringEmpty Apr 2, 2021
38ca2ce
Use dynamic CXX library and use -Bsymbolic to force use local symbols
w4123 Apr 3, 2021
c3c52ca
Merge branch 'Shiki' of https://github.com/w4123/Dice into Shiki
w4123 Apr 3, 2021
8d7247a
Enable LTO
w4123 Apr 3, 2021
825ff98
Workaround CMake Bugs (#53)
w4123 Apr 4, 2021
fceaeb5
fix MsgMonitor
mystringEmpty Apr 8, 2021
e3ec810
update DiceLua
mystringEmpty Apr 9, 2021
bbe1616
fix log
mystringEmpty Apr 14, 2021
c1684de
fix lua
mystringEmpty Apr 16, 2021
5d5e2f4
update checkUTF8
mystringEmpty Apr 18, 2021
20ac254
update GroupConf
mystringEmpty Apr 18, 2021
acc9fed
update format
mystringEmpty Apr 18, 2021
222f538
fix log
mystringEmpty Apr 18, 2021
e7f8da8
Fix encoding issues in Lua
w4123 Apr 19, 2021
69ce15a
More Lua Encoding Fix
w4123 Apr 19, 2021
8f53fa9
Lua Path Optimize
w4123 Apr 19, 2021
997b29c
Nickname fix
w4123 Apr 19, 2021
ff41b0d
Ignore file that starts with dot
w4123 Apr 19, 2021
f7c90da
Fix pc names
w4123 Apr 19, 2021
4678086
fix pc
mystringEmpty Apr 20, 2021
2943d05
fix ri
mystringEmpty Apr 29, 2021
7419c90
bug fix
w4123 Apr 29, 2021
9651d00
fix group set
mystringEmpty May 21, 2021
f8a8a24
fix audit log
mystringEmpty May 23, 2021
bb4ef61
update GroupAdd
mystringEmpty Jun 3, 2021
189b148
update sample
mystringEmpty Jun 7, 2021
fe35c6d
update loadLua
mystringEmpty Jun 7, 2021
05e4c6b
update DiceJob
mystringEmpty Jun 7, 2021
f8ca54c
update AutoClear
mystringEmpty Jun 7, 2021
fde0301
fix a small bug
mystringEmpty Jun 8, 2021
308ae5d
update FrqMonitor
mystringEmpty Jul 9, 2021
b8de20a
update getJrrp
mystringEmpty Jul 14, 2021
de3f9aa
update getConf
mystringEmpty Jul 14, 2021
76f8780
fix GroupClearLimit
mystringEmpty Jul 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://afdian.net/@suhuiw4123']
292 changes: 292 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
name: CMake

on: [push, pull_request]

jobs:
build-windows:
env:
BUILD_TYPE: Release
strategy:
fail-fast: false
matrix:
include:
- type: Win32
triplet: x86-windows-static
- type: x64
triplet: x64-windows-static

runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build

- name: Cache
uses: actions/cache@v2.1.4
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: ${{github.workspace}}/build/vcpkg_installed
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-

- name: Setup Vcpkg
shell: cmd
working-directory: ${{github.workspace}}/vcpkg
run: bootstrap-vcpkg.bat

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -A ${{ matrix.type }} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}

- name: Build
shell: bash
working-directory: ${{github.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Test
shell: bash
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

- name: Upload
uses: actions/upload-artifact@v2.2.2
with:
# Artifact name
name: ${{ matrix.triplet }}
# A file, directory or wildcard pattern that describes what to upload
path: "**/w4123.Dice.dll"

build-macos:
env:
BUILD_TYPE: Release
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
triplet: x64-osx
- arch: arm64
triplet: arm64-osx

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build

- name: Cache
uses: actions/cache@v2.1.4
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: ${{github.workspace}}/build/vcpkg_installed
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-

- name: Setup Vcpkg
shell: bash
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh

- name: Configure CMake
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}

- name: Build
working-directory: ${{github.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

- name: Upload
uses: actions/upload-artifact@v2.2.2
with:
# Artifact name
name: ${{ matrix.triplet }}
# A file, directory or wildcard pattern that describes what to upload
path: "**/w4123.Dice.dll"

build-linux:
env:
BUILD_TYPE: Release
strategy:
fail-fast: false
matrix:
include:
- apt: g++-8
cc: gcc-8
cxx: g++-8
triplet: x64-linux
- path: /usr/i686-linux-gnu
apt: g++-8-i686-linux-gnu
cc: i686-linux-gnu-gcc-8
cxx: i686-linux-gnu-g++-8
triplet: x86-linux
- path: /usr/aarch64-linux-gnu
apt: g++-8-aarch64-linux-gnu g++-aarch64-linux-gnu
cc: aarch64-linux-gnu-gcc-8
cxx: aarch64-linux-gnu-g++-8
triplet: arm64-linux
- path: /usr/arm-linux-gnueabihf
apt: g++-8-arm-linux-gnueabihf g++-arm-linux-gnueabihf
cc: arm-linux-gnueabihf-gcc-8
cxx: arm-linux-gnueabihf-g++-8
triplet: arm-linux

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build

- name: Install Cross Compiler
run: sudo apt-get install ${{ matrix.apt }}

- name: Cache
uses: actions/cache@v2.1.4
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: ${{github.workspace}}/build/vcpkg_installed
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-

- name: Setup Vcpkg
shell: bash
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh

- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_OVERLAY_TRIPLETS=${{ github.workspace }}/triplets -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_PREFIX_PATH=${{ matrix.path }}

- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

- name: Upload
uses: actions/upload-artifact@v2.2.2
with:
# Artifact name
name: ${{ matrix.triplet }}
# A file, directory or wildcard pattern that describes what to upload
path: "**/w4123.Dice.dll"

build-android:
env:
ANDROID_NDK: $ANDROID_NDK_HOME
BUILD_TYPE: Release
strategy:
fail-fast: false
matrix:
include:
- abi: armeabi-v7a
triplet: arm-android-static
- abi: arm64-v8a
triplet: arm64-android-static
- abi: x86
triplet: x86-android-static
- abi: x86_64
triplet: x64-android-static

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{github.workspace}}/build

- name: Cache
uses: actions/cache@v2.1.4
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: ${{github.workspace}}/build/vcpkg_installed
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-${{ matrix.triplet }}-${{ hashFiles('**/vcpkg.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.triplet }}-

- name: Setup Vcpkg
shell: bash
working-directory: ${{github.workspace}}/vcpkg
run: ./bootstrap-vcpkg.sh

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake -DVCPKG_OVERLAY_TRIPLETS=${{ github.workspace }}/triplets -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DANDROID_ABI=${{ matrix.abi }} -DANDROID_PLATFORM=21

- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

- name: Upload
uses: actions/upload-artifact@v2.2.2
with:
# Artifact name
name: ${{ matrix.triplet }}
# A file, directory or wildcard pattern that describes what to upload
path: "**/w4123.Dice.dll"

69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ Shiki ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ Shiki ]
schedule:
- cron: '17 7 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@
/packages
/docs/html
/Debug
/Win32
/x64
/Dice-cppcheck-build-dir
/w4123.Dice.dir

/CMakeFiles
/vcpkg_installed
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "vcpkg"]
path = vcpkg
url = https://github.com/w4123/vcpkg
[submodule "libiconv"]
path = libiconv
url = https://github.com/w4123/libiconv-android-prebuilt
Loading