mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
29 lines
679 B
YAML
29 lines
679 B
YAML
name: Compile UI translations
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'language/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'language/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-language:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 0
|
|
- 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@main
|
|
with:
|
|
name: mame-language-${{ github.sha }}
|
|
path: language/*/*.mo
|
|
if-no-files-found: error
|