From 177b21a02c45d12cb33394309237a494906d5481 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:22:32 +0100 Subject: Added very simple Github Action --- .github/workflows/do-build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/do-build.yml diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml new file mode 100644 index 0000000..fb998ba --- /dev/null +++ b/.github/workflows/do-build.yml @@ -0,0 +1,16 @@ +name: Github Actions do build +on: [push] +jobs: + Run-Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Build with Gradle + run: ./gradlew build \ No newline at end of file -- cgit From badc374db8040f37416099a813e25ca35881a4a3 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:28:06 +0100 Subject: . --- .github/workflows/do-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml index fb998ba..313a8a9 100644 --- a/.github/workflows/do-build.yml +++ b/.github/workflows/do-build.yml @@ -13,4 +13,4 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle - run: ./gradlew build \ No newline at end of file + run: ls . && ./gradlew build \ No newline at end of file -- cgit From 62e18ac93db627adc5c56624f5d7adf1d01c5535 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:29:34 +0100 Subject: . --- .github/workflows/do-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml index 313a8a9..df206f5 100644 --- a/.github/workflows/do-build.yml +++ b/.github/workflows/do-build.yml @@ -13,4 +13,4 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle - run: ls . && ./gradlew build \ No newline at end of file + run: sh./gradlew build \ No newline at end of file -- cgit From 7b68c58105ff731334341bd282e51b0e6602954e Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:30:16 +0100 Subject: . --- .github/workflows/do-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml index df206f5..8c7d598 100644 --- a/.github/workflows/do-build.yml +++ b/.github/workflows/do-build.yml @@ -13,4 +13,4 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle - run: sh./gradlew build \ No newline at end of file + run: sh ./gradlew build \ No newline at end of file -- cgit From 3724d5d13f8ca33195d2d575c97dd14d5d4e36a3 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:30:49 +0100 Subject: run with bash --- .github/workflows/do-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml index 8c7d598..e02bad8 100644 --- a/.github/workflows/do-build.yml +++ b/.github/workflows/do-build.yml @@ -13,4 +13,4 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle - run: sh ./gradlew build \ No newline at end of file + run: bash ./gradlew build \ No newline at end of file -- cgit From a3061de02c857cb92fdad6134c301d6894abd256 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 17:38:01 +0100 Subject: emot job artifact --- .github/workflows/do-build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/do-build.yml b/.github/workflows/do-build.yml index e02bad8..0619b20 100644 --- a/.github/workflows/do-build.yml +++ b/.github/workflows/do-build.yml @@ -13,4 +13,9 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - name: Build with Gradle - run: bash ./gradlew build \ No newline at end of file + run: bash ./gradlew build + - name: 'Upload Jar' + uses: actions/upload-artifact@v2 + with: + name: CoflSky-CI + path: build/libs/CoflMod-1.0-all.jar \ No newline at end of file -- cgit