Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete old stuff, update maven, and GitHub actions #15

Merged
merged 4 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: build-and-test
on:
pull_request:
Expand All @@ -14,26 +13,31 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ '8', '17' ]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Java ${{ matrix.java-version }}
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
java-package: jdk
distribution: 'temurin'
java-version: 8

- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.1

- name: build application
- name: Build application
shell: bash
run: |
mvn clean install
mvn clean install

- name: Upload JAR files from all modules
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: |
FundamentalsCore/target/*.jar
FundamentalsImport/target/*.jar
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#name: Release Workflow
#
#on:
# push:
# branches:
# - main
# - master
#
#jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Set up JDK 1.8
# uses: actions/setup-java@v2
# with:
# distribution: 'temurin'
# java-version: 8
#
# - name: Get the version from pom.xml
# id: get_version
# run: echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
#
# - name: Fail if snapshot version
# run: |
# if [[ $PROJECT_VERSION == *"-SNAPSHOT"* ]]; then
# echo "Snapshot versions are not releasable"
# exit 0
# fi
#
# - name: Build with Maven
# run: mvn clean package
#
# - name: Create GitHub Release
# if: ${{ !endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
# uses: softprops/action-gh-release@v1
# with:
# tag_name: ${{ env.PROJECT_VERSION }}
# files: |
# FundamentalsCore/target/*.jar
# FundamentalsImport/target/*.jar
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,5 @@ buildNumber.properties
# JDT-specific (Eclipse Java Development Tools)
.classpath

libs/
libs/
old-libs/
241 changes: 0 additions & 241 deletions Download-Jars/.gitignore

This file was deleted.

Loading
Loading