| 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@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0 | |
| with: | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: '>=1.25' | |
| cache-dependency-path: extra/generate-display-names/go.sum | |
| - name: Install dependencies | |
| run: sudo apt-get update -qq && sudo apt-get install -y libyaml-dev texinfo texlive | |
| - 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: generate-display-names.log | |
| path: extra/generate-display-names/generate.log |