Add a LICENSE file with the plain text of CC-BY-4.0 #887
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check that syntax is correct | |
| name: CIFSyntaxandStyleCheck | |
| # Controls when the action will run. Triggers the workflow on push or pull request | |
| # events but only for the master branch | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/**' | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '.github/**' | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| syntax: | |
| # 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 | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| # Check syntax of all CIF files | |
| - name: check_syntax | |
| uses: COMCIFS/cif_syntax_check_action@master | |
| id: cif_syntax_check | |
| semantics: | |
| name: Semantics | |
| runs-on: ubuntu-latest | |
| needs: syntax | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout the DDLm reference dictionary | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/DDLm | |
| path: cif-dictionaries/DDLm | |
| - name: Checkout enumeration templates | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/Enumeration_Templates | |
| path: cif-dictionaries/Enumeration_Templates | |
| - name: Checkout attribute templates | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/Attribute_Templates | |
| path: cif-dictionaries/Attribute_Templates | |
| - name: Run dictionary validity checks | |
| uses: COMCIFS/dictionary_check_action@main | |
| id: ddlm_check | |
| layout: | |
| runs-on: ubuntu-latest | |
| needs: syntax | |
| steps: | |
| - name: Get the cache | |
| uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: ~/.julia | |
| key: ${{ runner.os }}-julia-v2 | |
| - name: Install Julia | |
| uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: '1.6' | |
| - name: Install Julia packages | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| julia -e 'import Pkg;Pkg.add("CrystalInfoFramework");Pkg.add("Lerche");Pkg.add("FilePaths");Pkg.add("ArgParse")' | |
| - name: checkout julia tools | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: jamesrhester/julia_cif_tools | |
| path: julia_cif_tools | |
| - name: Checkout CIF master files | |
| uses: actions/checkout@v4 | |
| with: | |
| path: cif_core | |
| - name: Checkout DDL definitions | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/DDLm | |
| path: DDLm | |
| - name: Checkout enum templates | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/Enumeration_Templates | |
| path: enum | |
| - name: Checkout attr templates | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: COMCIFS/Attribute_Templates | |
| path: templ | |
| - name: Move template files to expected location | |
| run: | | |
| mv enum/templ_enum.cif cif_core/templ_enum.cif | |
| mv templ/templ_attr.cif cif_core/templ_attr.cif | |
| - name: Diagnostics | |
| run: | | |
| ls -a | |
| echo "pwd:" | |
| pwd | |
| echo "Julia location:" | |
| which julia | |
| echo "cif_core contents" | |
| ls cif_core | |
| - name: one_dict_layout | |
| run: | | |
| julia -e 'using Pkg; Pkg.status()' | |
| for file in cif_core/*.dic | |
| do | |
| echo "Checking $file" | |
| julia -O0 ./julia_cif_tools/linter.jl -i $PWD/cif_core $file $PWD/DDLm/ddl.dic | |
| if [ $? != 0 ] | |
| then | |
| exit 1 ; | |
| fi | |
| done |