diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..6668b69b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,63 @@ +name: SourcetrailDB + +on: + push: + branches: + - master + - idl2src-ci + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Update package list + run: sudo apt-get update + + - name: Install dependencies + run: sudo apt-get install gnudatalanguage + + - name: Get FHD + uses: actions/checkout@v2 + with: + repository: EoRImaging/FHD + + - name: Download gdl artifact + uses: dawidd6/action-download-artifact@v2.14.1 + with: + workflow: build.yml + name: gdl + path: ./ + repo: no-lex/idl2src + branch: main + + - name: Download idl2src artifact + uses: dawidd6/action-download-artifact@v2.14.1 + with: + workflow: build.yml + name: idl2src + path: ./ + repo: no-lex/idl2src + branch: main + + - name: Build Database + run: | + chmod 777 idl2src + chmod 777 gdl + chmod 777 ci_script.sh + chmod 777 run_indexer.sh + ./ci_script.sh + ls + + - name: Upload database artifact + uses: actions/upload-artifact@v2 + with: + name: FHD + path: | + ./FHD.srctrldb + ./FHD.srctrlprj diff --git a/README.md b/README.md index 5983a5fc..e35ee2d7 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ For further details, please see [Sullivan et al 2012](https://arxiv.org/abs/1209 * [Outputs](https://github.com/EoRImaging/FHD/blob/master/outputs.md): For documentation of the various outputs, see the outputs page. * [Inputs](https://github.com/EoRImaging/FHD/blob/master/inputs.md): FHD inputs beam models, calibration files, and sky model catalogs. Currently available inputs are described on this page. * [Publications](https://github.com/EoRImaging/FHD/blob/master/publications.md): FHD has been used in a variety of publications, documented on this page. +* [Sourcetrail](https://github.com/EoRImaging/FHD/actions): FHD's GitHub Actions generates a Sourcetrail database; just unpack the FHD artifact in the link and open it with [Sourcetrail](https://github.com/CoatiSoftware/Sourcetrail) for convenient, interactive visualization. ## Installation Download the latest versions of these libraries/repos.