-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,55 @@ | ||
name: build | ||
on: [pull_request, push] | ||
name: C2ME Test | ||
|
||
on: | ||
push: {} | ||
pull_request: {} | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: setup jdk 21 | ||
uses: actions/setup-java@v4 | ||
|
||
- name: Set up JDK 23 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 23 | ||
java-package: jdk | ||
|
||
- name: Install LLVM | ||
uses: KyleMayes/install-llvm-action@v2 | ||
with: | ||
java-version: 21 | ||
distribution: 'microsoft' | ||
version: "18.1.8" | ||
|
||
- name: Install required dependencies | ||
run: sudo apt update && sudo apt install libtinfo5 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
./.gradle/loom-cache | ||
key: ${{ runner.os }}-gradle4-test-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle4-test- | ||
- name: setup project | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
./build.sh up | ||
./build.sh patch | ||
- name: build | ||
run: | | ||
cd C2ME-fabric-patched | ||
./gradlew clean build | ||
- name: capture build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: C2ME Test | ||
|
||
on: | ||
push: {} | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testTask: [runTestC2MEServer] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
- name: Set up JDK 23 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 23 | ||
java-package: jdk | ||
|
||
- name: Install LLVM | ||
uses: KyleMayes/install-llvm-action@v2 | ||
with: | ||
version: "18.1.8" | ||
|
||
- name: Install required dependencies | ||
run: sudo apt update && sudo apt install libtinfo5 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
./.gradle/loom-cache | ||
key: ${{ runner.os }}-gradle4-test-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle4-test- | ||
- name: setup project | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
./build.sh up | ||
./build.sh patch | ||
- name: Test C2ME | ||
run: | | ||
cd C2ME-fabric-patched | ||
./gradlew clean ${{ matrix.testTask }} |