Disable threaded caching of resource preview icons #164
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: Java CI with Apache Ant | |
on: | |
push: | |
branches: [ devel ] | |
pull_request: | |
branches: [ devel ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '8' | |
- name: Build with Ant | |
run: | | |
hash=$(echo "${{ github.sha }}" | sed -e 's/\(.\{7\}\).*/\1/') | |
sed -i "s/\(VERSION *= *\"v\?[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\)[^\"]*\"/\1-$(date +%Y%m%d) (${hash})\"/" src/org/infinity/NearInfinity.java | |
sed -i 's/debug="false"/debug="true"/' build.xml | |
ant -noinput -buildfile build.xml | |
- name: Upload artifact | |
if: ${{ github.actor != 'NearInfinityBrowser' }} | |
uses: pyTooling/Actions/releaser@r0 | |
with: | |
tag: nightly | |
rm: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: NearInfinity.jar |