Skip to content

action: change back to ubuntu #14

action: change back to ubuntu

action: change back to ubuntu #14

Workflow file for this run

name: AceTheGame CI
on: [push]
jobs:
ACE:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: "install compiler and build tools"
run: sudo apt-get install build-essential
- name: create build directory
working-directory: ./ACE
run: mkdir build
# TODO: run unit tests on android emulator
# debug
- name: debug build
working-directory: ./ACE/build
run: |
cmake -DCMAKE_BUILD_TYPE=Debug ../
make -j${nproc}
- name: debug unit test
working-directory: ./ACE/build
run: ./test/test_ace -s
# release
- name: release build
working-directory: ./ACE/build
run: |
cmake -DCMAKE_BUILD_TYPE=Release ../
make -j${nproc}
- name: release unit test
working-directory: ./ACE/build
run: ./test/test_ace -s
Modder:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: "install build dependecies"
run: sudo apt-get install openjdk-17-jdk-headless apktool gradle
- name: generating code for injection
working-directory: ./Modder/injector
run: python3 ./gen_smali.py
- name: build
working-directory: ./Modder
# only build no testing
run: ./gradlew build -x test
- name: test
working-directory: ./Modder
# only build no testing
run: ./gradlew test
ATG:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: "install build dependecies"
run: sudo apt-get install openjdk-17-jdk-headless fd-find
- name: "setup JAVA_HOME to java 17"
working-directory: /usr/lib/jvm
# find where java-17 is at /usr/lib/jvm then set JAVA_HOME to its path
run: fdfind java-17 | xargs readlink -f | awk '{print "export JAVA_HOME="$1""}' >> ~/.bashrc && source ~/.bashrc
- name: build
working-directory: ./ATG
# only build no testing
run: ./gradlew assembleDebug
# TODO: run unit tests both pure unit tests and instrumented one