forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (67 loc) · 2.46 KB
/
Copy pathlinux_locales.yml
File metadata and controls
72 lines (67 loc) · 2.46 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Linux Locale Build
on:
pull_request:
paths-ignore:
- 'doc/**'
- 'mkdocs.yml'
- 'requirements.txt'
- '.github/workflows/docs.yml'
- '**/src/main/resources/GeoServerApplication_*.properties'
- '!**/src/main/resources/GeoServerApplication_fr.properties'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Xmx2g -Daether.connector.basic.threads=8 -Daether.metadataResolver.threads=8 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dspotless.apply.skip=true
jobs:
build:
strategy:
fail-fast: false
matrix:
# italian has . and , usage opposite to english, will add more languages as time allows for testing and fixing
locale: [it_IT.UTF-8]
jdk: [ 17]
dist: [ 'temurin' ]
os: [ 'ubuntu-22.04' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
with:
# 500 commits, set to 0 to get all
fetch-depth: 500
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.jdk }}
distribution: ${{ matrix.dist }}
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.16
- name: Maven repository caching
uses: actions/cache@v6
with:
path: ~/.m2/repository
key: gs-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gs-${{ runner.os }}-maven-
- name: Install locales
run: |
sudo apt-get update
sudo apt-get install -y locales
sudo locale-gen en_US.UTF-8 it_IT.UTF-8 tr_TR.UTF-8
sudo update-locale
- name: Set locale
run: |
echo "LANG=${{ matrix.locale }}" >> $GITHUB_ENV
echo "LC_ALL=${{ matrix.locale }}" >> $GITHUB_ENV
echo "LC_NUMERIC=${{ matrix.locale }}" >> $GITHUB_ENV
locale
- name: Build with Maven
run: |
mvn --version
mvn -B -ntp -U -T1C -fae -Prelease,pending -f src/pom.xml clean install
- name: Remove SNAPSHOT jars from repository
if: always()
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}