Skip to content

Commit

Permalink
Create GitHub Actions configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Jan 10, 2024
1 parent aacbf31 commit 2e0f227
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [master, gradle-and-fixes]
pull_request:
branches: [master, gradle-and-fixes]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Update version for CI snapshot
run: .github/workflows/make-snapshot-version.sh
- name: Build with Gradle
run: ./gradlew build
- name: Build Windows executable with launch4j
run: ./gradlew createExe
# Artifact upload disabled to avoid violating licenses - see https://github.com/VUE/VUE/issues/49
# - name: Upload jar
# uses: actions/upload-artifact@v1
# with:
# name: jar
# path: VUE2/build/libs
# - name: Upload bundles
# uses: actions/upload-artifact@v1
# with:
# name: bundles
# path: VUE2/build/distributions
# - name: Upload Windows executable
# uses: actions/upload-artifact@v1
# with:
# name: windows
# path: VUE2/build/launch4j
6 changes: 6 additions & 0 deletions .github/workflows/make-snapshot-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -e

NEWVER=+CI-$(date +%Y%m%d)
echo "Appending suffix snapshot version $NEWVER"
sed -i "s/vue.version=\(.*\)/\1$NEWVER/" VUE2/src/main/resources/tufts/vue/VueResources.properties

0 comments on commit 2e0f227

Please sign in to comment.