Skip to content

chore(deps): bump kotlin_version from 1.9.23 to 2.0.0 #831

chore(deps): bump kotlin_version from 1.9.23 to 2.0.0

chore(deps): bump kotlin_version from 1.9.23 to 2.0.0 #831

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Workflow
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: "*"
pull_request:
branches: "*"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@master
with:
distribution: 'zulu'
java-version: '8'
- name: Get shortsha
id: vars
run: echo ::set-output name=sha_short::$(git rev-parse --short=7 ${{ github.sha }})
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
# optional, default is artifact
name: KaizPatchX-${{ steps.vars.outputs.sha_short }}.jar
# A file, directory or wildcard pattern that describes what to upload
path: build/libs/src1.7.10_20200822+KaizPatchX-SNAPSHOT.jar
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: [ build ]
# AWS S3 mirror of Minecraft, which is used by forge installer, is down
# see https://github.com/Kai-Z-JP/KaizPatchX/issues/327
# see https://github.com/itzg/docker-minecraft-server/issues/1814
if: false
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Get shortsha
id: vars
run: echo ::set-output name=sha_short::$(git rev-parse --short=7 ${{ github.sha }})
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: KaizPatchX-${{ steps.vars.outputs.sha_short }}.jar
path: ~/docker/data/mods/
# Runs a single command using the runners shell
- name: Run docker
shell: bash
run: |
docker run \
-d \
-v ~/docker/data:/data \
-v ~/docker/data/mods:/mods \
-e TYPE=FORGE \
-e VERSION=1.7.10 -e FORGEVERSION=10.13.4.1614 \
-p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server:java8-multiarch
sleep 90
docker exec mc rcon-cli stop
- name: Show log
shell: bash
if: failure()
run: docker logs -f mc