Skip to content

Commit 856fe95

Browse files
committed
run java bots
1 parent 6aebb10 commit 856fe95

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/e2e-linux.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ jobs:
1919
- name: Build with Maven
2020
run: mvn -B package --file pom.xml
2121

22-
- name: Setup e2e-linux env
22+
- name: Setup and launch openbw
2323
run: |
2424
sudo apt-get update
2525
sudo apt-get install cmake libsdl2-dev libsdl2-mixer-dev
26-
27-
26+
2827
git clone https://github.com/basil-ladder/openbw
29-
git clone https://github.com/basil-ladder/bwapi
28+
git clone -b linux-client-support https://github.com/basil-ladder/bwapi
3029
cd bwapi
3130
mkdir build
3231
cd build
@@ -37,5 +36,14 @@ jobs:
3736
unzip starcraft.zip patch_rt.mpq BROODAT.MPQ STARDAT.MPQ
3837
mv patch_rt.mpq Patch_rt.mpq && mv BROODAT.MPQ BrooDat.mpq && mv STARDAT.MPQ StarDat.mpq
3938
unzip starcraft.zip "maps/BroodWar/ICCup/ICCup Destination 1.1.scx"
40-
39+
4140
BWAPI_CONFIG_AUTO_MENU__RACE=Terran BWAPI_CONFIG_AUTO_MENU__MAP="maps/BroodWar/ICCup/ICCup Destination 1.1.scx" ./bin/BWAPILauncher&
41+
BWAPI_CONFIG_AUTO_MENU__RACE=Terran BWAPI_CONFIG_AUTO_MENU__MAP="maps/BroodWar/ICCup/ICCup Destination 1.1.scx" ./bin/BWAPILauncher&
42+
43+
- name: Build & Run test bots
44+
run: |
45+
mvn install -DskipTests
46+
mvn -f it/bots/pom.xml package
47+
48+
java -jar it/bots/SittingDuck/target/SittingDuck-*-jar-with-dependencies.jar &
49+
java -jar it/bots/jbwapibot/target/MarineHell-*-jar-with-dependencies.jar

it/openbw/BWAPILauncher

-2.42 MB
Binary file not shown.

0 commit comments

Comments
 (0)