Fix division by zero in cabcar max speed #869
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Immersive Railroading Build Pipeline | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
branch: [1.7.10-forge, 1.10.2-forge, 1.11.2-forge, 1.12.2-forge, 1.14.4-forge, 1.15.2-forge, 1.16.5-forge, 1.17.1-forge, 1.18.2-forge, 1.19.4-forge, 1.20.1-forge] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: keyscan | |
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts | |
- name: Install deps | |
run: sudo apt install -y pngquant findutils xvfb | |
- name: Setup Universal Mod Core (and helpers) | |
env: | |
BRANCH: ${{ matrix.branch }} | |
run: java -jar UMCSetup.jar ${BRANCH} https | |
- name: Gradle compile | |
run: ./gradlew classes | |
- name: Process images | |
run: find src/main/resources/assets/immersiverailroading/ | grep png | xargs -I foo pngquant -s1 -f --ext .png foo | |
- name: Run Data (optionalish) | |
run: xvfb-run --auto-servernum ./gradlew runData || xvfb-run --auto-servernum ./gradlew runData || true | |
- name: Gradle build | |
run: ./gradlew build | |
- name: Gradle publish | |
env: | |
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }} | |
run: ./gradlew publish | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Immersive Railroading ${{matrix.branch}} | |
path: build/libs/ImmersiveRailroading-${{matrix.branch}}-* |