From 1e0c94c4e55d0b126ac030fe1d287d7adc58227f Mon Sep 17 00:00:00 2001 From: 4drian3d <68704415+4drian3d@users.noreply.github.com> Date: Sun, 2 May 2021 11:34:23 -0500 Subject: [PATCH 1/4] Added process for workflows in Github Actions --- .github/workflows/flamecord-build.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/flamecord-build.yml diff --git a/.github/workflows/flamecord-build.yml b/.github/workflows/flamecord-build.yml new file mode 100644 index 0000000..70d98f6 --- /dev/null +++ b/.github/workflows/flamecord-build.yml @@ -0,0 +1,32 @@ +name: Flamecord Maven Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + java: [8, 11, 16] + + steps: + - uses: actions/checkout@v2 + - name: Setup JAVA ${{ matrix.java }} + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'adopt' + architecture: x64 + + - name: Build Flamecord + run: | + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + scripts/build.sh --jar + + - name: Upload Flamecord + uses: actions/upload-artifact@v2 + with: + name: Flamecord-JDK${{ matrix.java }} + path: Travertine-Proxy/bootstrap/target/Travertine.jar \ No newline at end of file From 69395de89d35fd71b27df945f9c837dcdb2d6b2c Mon Sep 17 00:00:00 2001 From: 4drian3d <68704415+4drian3d@users.noreply.github.com> Date: Sun, 2 May 2021 16:46:11 -0500 Subject: [PATCH 2/4] Cache Maven packages for faster builds --- .github/workflows/flamecord-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flamecord-build.yml b/.github/workflows/flamecord-build.yml index 70d98f6..739247a 100644 --- a/.github/workflows/flamecord-build.yml +++ b/.github/workflows/flamecord-build.yml @@ -19,6 +19,13 @@ jobs: distribution: 'adopt' architecture: x64 + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build Flamecord run: | git config --global user.email "you@example.com" @@ -29,4 +36,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: Flamecord-JDK${{ matrix.java }} - path: Travertine-Proxy/bootstrap/target/Travertine.jar \ No newline at end of file + path: Travertine-Proxy/bootstrap/target/Travertine.jar From 1d12a54ec16a80dc018eb3d5a37fe83fdf0ae995 Mon Sep 17 00:00:00 2001 From: 4drian3d <68704415+4drian3d@users.noreply.github.com> Date: Sun, 2 May 2021 22:32:11 -0500 Subject: [PATCH 3/4] Added Comments --- .github/workflows/flamecord-build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flamecord-build.yml b/.github/workflows/flamecord-build.yml index 739247a..985299e 100644 --- a/.github/workflows/flamecord-build.yml +++ b/.github/workflows/flamecord-build.yml @@ -1,4 +1,9 @@ -name: Flamecord Maven Build +#This workflow will perform a compilation test +#on each pull request or push to the branch master +#to check its correct compilation and will deliver +#an artifact to check if the change is working properly. + +name: FlameCord Maven Build on: [push, pull_request] @@ -6,6 +11,9 @@ jobs: build: runs-on: ubuntu-latest + #The corresponding tests are performed in the versions + #marked as Long Term Support by Java and in its + #latest version up to the moment. strategy: matrix: java: [8, 11, 16] @@ -19,6 +27,7 @@ jobs: distribution: 'adopt' architecture: x64 + #The corresponding dependencies are stored in the cache to speed up the test. - name: Cache Maven packages uses: actions/cache@v2 with: @@ -32,6 +41,7 @@ jobs: git config --global user.name "Your Name" scripts/build.sh --jar + #An artifact is generated in a compressed file according to each JDK build version. - name: Upload Flamecord uses: actions/upload-artifact@v2 with: From d3240473f573c1fdd56f5d85bd08e911868481d9 Mon Sep 17 00:00:00 2001 From: 4drian3d <68704415+4drian3d@users.noreply.github.com> Date: Sat, 8 May 2021 10:46:44 -0500 Subject: [PATCH 4/4] Changes --- .github/workflows/flamecord-build.yml | 35 ++++++++++++++------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/flamecord-build.yml b/.github/workflows/flamecord-build.yml index 985299e..27a0c35 100644 --- a/.github/workflows/flamecord-build.yml +++ b/.github/workflows/flamecord-build.yml @@ -1,8 +1,7 @@ -#This workflow will perform a compilation test -#on each pull request or push to the branch master -#to check its correct compilation and will deliver -#an artifact to check if the change is working properly. - +# This workflow will perform a compilation test +# on each pull request or push to the branch master +# to check its correct compilation and will deliver +# an artifact to check if the change is working properly. name: FlameCord Maven Build on: [push, pull_request] @@ -11,15 +10,17 @@ jobs: build: runs-on: ubuntu-latest - #The corresponding tests are performed in the versions - #marked as Long Term Support by Java and in its - #latest version up to the moment. + # The corresponding tests are performed in the versions + # marked as Long Term Support by Oracle and in its + # latest version up to the moment. strategy: matrix: java: [8, 11, 16] steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Setup JAVA ${{ matrix.java }} uses: actions/setup-java@v2 with: @@ -27,23 +28,23 @@ jobs: distribution: 'adopt' architecture: x64 - #The corresponding dependencies are stored in the cache to speed up the test. - - name: Cache Maven packages - uses: actions/cache@v2 + # The corresponding dependencies are stored in the cache to speed up the test. + - name: Cache Maven Packages + uses: actions/cache@v2.1.5 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build Flamecord + - name: Build FlameCord run: | git config --global user.email "you@example.com" git config --global user.name "Your Name" scripts/build.sh --jar - #An artifact is generated in a compressed file according to each JDK build version. - - name: Upload Flamecord - uses: actions/upload-artifact@v2 + # An artifact is generated in a compressed file according to each JDK build version. + - name: Upload FlameCord + uses: actions/upload-artifact@v2.2.3 with: - name: Flamecord-JDK${{ matrix.java }} + name: FlameCord-JDK${{ matrix.java }} path: Travertine-Proxy/bootstrap/target/Travertine.jar