Skip to content

Commit

Permalink
Freeze Ubuntu, Minor CI improvements. (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kichura authored Dec 21, 2024
1 parent 824218f commit b81e098
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ jobs:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Execute Gradle build
check-latest: true
- name: Execute Gradle Build
run: ./gradlew build test --stacktrace
- name: Prepare Upload
run: |
Expand All @@ -31,14 +32,14 @@ jobs:
mkdir dedicated/build/upload
cp dedicated/build/libs/SoulFireDedicated-$projectVersion.jar dedicated/build/upload
- name: Upload client Build Artifact
- name: Upload Client Build Artifacts
uses: actions/upload-artifact@v4
with:
name: SoulFireCLI
if-no-files-found: error
path: |
client/build/upload/*.jar
- name: Upload dedicated Build Artifact
- name: Upload Dedicated Build Artifacts
uses: actions/upload-artifact@v4
with:
name: SoulFireDedicated
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,26 @@ permissions:

jobs:
dependency-submission:
runs-on: ubuntu-latest
if: github.repository_owner == 'AlexProgrammerDE'
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
check-latest: true
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4
with:
build-scan-publish: true
build-scan-terms-of-service-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-service-agree: "yes"
build-scan-terms-of-use-url: "https://gradle.com/terms-of-use"
build-scan-terms-of-use-agree: "yes"
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':(buildSrc|data\-generator)'
10 changes: 6 additions & 4 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ on: [ release ]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set version
id: set-version
run: |
Expand All @@ -29,7 +31,7 @@ jobs:
driver-opts: |
image=moby/buildkit:v0.11.6
platforms: linux/amd64,linux/arm64
- name: Build and push
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: ./
Expand Down

0 comments on commit b81e098

Please sign in to comment.