summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/language.yml
blob: 35e580e8bf50e2a516b713d629d30b6938e796f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Compile UI translations

on:
  push:
    paths:
    - '.github/**'
    - 'language/**'
  pull_request:
    paths:
    - '.github/**'
    - 'language/**'

permissions:
  contents: read

jobs:
  build-language:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Compile message catalogs
      run: for x in language/*/*.po ; do python scripts/build/msgfmt.py --output-file "`dirname "$x"`/`basename "$x" .po`.mo" "$x" ; done
    - uses: actions/upload-artifact@master
      with:
        name: mame-language-${{ github.sha }}
        path: language/*/*.mo