From 4c3c42a73807f5295282742c5b4d690676a27fa4 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sun, 20 Sep 2020 15:41:11 -0400 Subject: [PATCH 1/3] Cleaned up makefile. --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 44252fe..6f5feb9 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,14 @@ default: @echo \"make run\" to run Driver class @echo \"make jar\" to compile executable jar @echo \"make clean\" to clean up artifacts + build: $(JCC) $(JFLAGS) Driver.java -run: - $(JCC) $(JFLAGS) Driver.java - java Driver -jar: - $(JCC) $(JFLAGS) Driver.java + +run: jar + java -jar MTGClone.jar + +jar: build @echo "Manifest-Version: 1.0" > manifest.txt @echo "Class-Path: ." >> manifest.txt @echo "Main-Class: Driver" >> manifest.txt @@ -21,6 +22,7 @@ jar: jar -cmf manifest.txt MTGClone.jar *.class $(RM) manifest.txt $(RM) *.class + clean: $(RM) *.class $(RM) manifest.txt From d9f576eb1bff13de43b1fd98e7c12361b905fd44 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 24 Sep 2020 18:38:05 -0400 Subject: [PATCH 2/3] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..e34b47e --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,17 @@ +name: Java CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: make + run: make jar From a179899bb94afaea055029176dd27aaabd8cb47e Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 24 Sep 2020 18:40:39 -0400 Subject: [PATCH 3/3] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e34b47e..a37751c 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -15,3 +15,8 @@ jobs: - uses: actions/checkout@v2 - name: make run: make jar + - name: Upload Artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: MTGClone.jar + path: MTGClone.jar