From 82cb0a2dc531317e8df992d5e98be3076929ffa9 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sun, 6 Dec 2020 12:40:19 -0500 Subject: [PATCH 1/5] Setup github action for CI --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2617d0c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + # setup graphviz environment + - uses: ts-graphviz/setup-graphviz@v1 + + # Create the PDF output + - name: PDF + run: dot -Tpdf brotherhood.gz > dist/brotherhood.pdf + + # Create the SVG output + - name: SVG + run: dot -Tsvg brotherhood.gz > dist/brotherhood.svg From 6caebfbeb8f1b874dce991ef4de8bd6d86b7d197 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sun, 6 Dec 2020 13:01:52 -0500 Subject: [PATCH 2/5] Create distribution directory --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2617d0c..5bbff3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,9 @@ jobs: - uses: actions/checkout@v2 # setup graphviz environment - uses: ts-graphviz/setup-graphviz@v1 + + - name: Make Distribution directory + run: mkdir dist # Create the PDF output - name: PDF From 95efe158268590cda140d1e4f77427b4536aa701 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sun, 6 Dec 2020 13:15:57 -0500 Subject: [PATCH 3/5] Update to keep build artifacts --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bbff3f..538a03e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,3 +37,8 @@ jobs: # Create the SVG output - name: SVG run: dot -Tsvg brotherhood.gz > dist/brotherhood.svg + + - uses: actions/upload-artifact@v2 + with: + name: Generated Trees + path: /dist From 9c887c51ef7fba339521335c15dd873c6f748660 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sun, 6 Dec 2020 13:28:42 -0500 Subject: [PATCH 4/5] Add trailing slash to indicate a directory --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 538a03e..de258e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,4 +41,4 @@ jobs: - uses: actions/upload-artifact@v2 with: name: Generated Trees - path: /dist + path: /dist/ From c536494c14324621fc9090db6c0d0328aa6aa058 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Sun, 6 Dec 2020 13:36:42 -0500 Subject: [PATCH 5/5] Fix directory path --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de258e4..c46a92e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,4 +41,4 @@ jobs: - uses: actions/upload-artifact@v2 with: name: Generated Trees - path: /dist/ + path: dist/