| name: Run the metadata test |
| |
| on: |
| workflow_dispatch: |
| push: |
| branches: [ master ] |
| paths: |
| - 'tables/*' |
| - 'liblouis/metadata.c' |
| - 'extra/generate-display-names/*' |
| pull_request: |
| branches: [ master ] |
| paths: |
| - 'tables/*' |
| - 'liblouis/metadata.c' |
| - 'extra/generate-display-names/*' |
| |
| permissions: # added using https://github.com/step-security/secure-workflows |
| contents: read |
| |
| jobs: |
| metadata-test: |
| name: Build and check the metadta |
| |
| runs-on: ubuntu-latest |
| |
| steps: |
| - name: Harden Runner |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 |
| with: |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs |
| |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| - name: Install dependencies |
| run: sudo apt-get update -qq && sudo apt-get install -y libyaml-dev texinfo texlive golang-1.23 |
| - name: autogen && configure |
| run: | |
| ./autogen.sh |
| ./configure --enable-ucs4 |
| - name: Build |
| run: make |
| - name: Run the metadata test |
| run: make -C extra/generate-display-names |
| - name: Store the log |
| if: ${{ failure() }} |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 |
| with: |
| name: generate-display-names.log |
| path: extra/generate-display-names/generate.log |