This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
65 lines (62 loc) · 2.09 KB
/
loadTest.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: loadTest
on:
workflow_dispatch:
workflow_call:
jobs:
windows-load-test:
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: chmod -R 777 *
run: chmod -R 777 *
- name: setup MSVC
uses: ilammy/[email protected]
with:
arch: amd64
vsversion: 2019
- name: configure
run: mkdir "cpp/cmake-build-debug" && cd "cpp/cmake-build-debug" && cmake -DCMAKE_BUILD_TYPE=Release -DGOOGLE_TEST=OFF ..
- name: complie cpp
run: cd ./cpp && cmake --build "cmake-build-debug" --config Release --target Loader && cmake --build "cmake-build-debug" --config Release --target MiraiCP_multi
- name: tree
run: tree /f
- name: loadTest
run: cd ./kotlin/ && ./gradlew :MiraiCP-loader:test --tests "tech.eritquearcus.miraicp.loader.LoaderCITest.test" --warning-mode all --info --stacktrace
ubuntu-load-test:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: chmod -R 777 *
run: chmod -R 777 *
- name: setup gcc
uses: egor-tensin/setup-gcc@v1
with:
version: 9
platform: x64
- name: configure
env:
cc: gcc
cxx: g++
run: mkdir "cpp/cmake-build-debug" && cd "cpp/cmake-build-debug" && cmake -DCMAKE_BUILD_TYPE=Release -DGOOGLE_TEST=OFF .. && make Loader && make MiraiCP_multi
- name: loadTest
run: cd ./kotlin/ && ./gradlew :MiraiCP-loader:test --tests "tech.eritquearcus.miraicp.loader.LoaderCITest.test" --warning-mode all --info --stacktrace