Skip to content

Commit 145045b

Browse files
authored
Merge pull request #85 from simplelocalize/2.5.0-snapshot
2.5.0 snapshot
2 parents 06d25ac + 653a4e3 commit 145045b

File tree

76 files changed

+2094
-1481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2094
-1481
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Build executables
22

3-
43
on:
54
push:
65
branches:
76
- 'master'
7+
- '*-snapshot'
88
pull_request:
99

1010
env:
@@ -16,106 +16,55 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
19+
name: "Checkout"
1920
- uses: actions/setup-java@v3
21+
name: "Install Java"
2022
with:
21-
java-version: '11'
22-
distribution: 'adopt'
23-
- name: "Cache Maven packages"
24-
uses: actions/cache@v3
25-
with:
26-
path: ~/.m2
27-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28-
restore-keys: ${{ runner.os }}-m2
29-
- name: "Build with Maven"
30-
run: mvn -B clean install --file pom.xml
31-
- name: 'Get Version Number'
23+
java-version: '17'
24+
distribution: 'temurin'
25+
cache: 'maven'
26+
- name: "Build JAR"
27+
run: mvn -DskipTests -Pfatjar clean package
28+
- name: 'Get version'
3229
run: echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
3330
- name: 'Upload artifact'
3431
uses: actions/upload-artifact@v3
3532
with:
3633
name: 'simplelocalize-cli-${{env.VERSION}}.jar'
3734
path: 'target/simplelocalize-cli-${{env.VERSION}}.jar'
38-
build-windows:
39-
needs: [ build-jar ]
40-
name: "Build Windows executable"
41-
runs-on: windows-latest
42-
steps:
43-
- uses: actions/checkout@v3
44-
- name: "Download GraalVM"
45-
run: |
46-
Invoke-RestMethod -Uri https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-windows-amd64-20.1.0.zip -OutFile 'graal.zip'
47-
- name: "Install GraalVM"
48-
run: |
49-
Expand-Archive -path 'graal.zip' -destinationpath '.'
50-
- name: "Install Native Image"
51-
run: |
52-
graalvm-ce-java11-20.1.0\bin\gu.cmd install native-image
53-
- name: "Set up Visual C Build Tools Workload for Visual Studio 2017 Build Tools"
54-
run: |
55-
choco install visualstudio2017-workload-vctools
56-
- name: 'Get Version Number'
57-
run: |
58-
echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
59-
shell: bash
60-
- name: 'Get JAR Artifact'
61-
uses: actions/download-artifact@v3
62-
with:
63-
name: 'simplelocalize-cli-${{env.VERSION}}.jar'
64-
- name: "Build Native Image"
65-
shell: cmd
66-
env:
67-
JAVA_HOME: ./graalvm-ce-java11-20.1.0
68-
run: |
69-
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
70-
./graalvm-ce-java11-20.1.0/bin/native-image --no-server -Dmicronaut.env.deduction=false --report-unsupported-elements-at-runtime -cp simplelocalize-cli-${{env.VERSION}}.jar -H:Name="simplelocalize-cli-windows" io.simplelocalize.cli.SimplelocalizeCliCommand
71-
# - name: "Optimize executable"
72-
# uses: svenstaro/upx-action@v2
73-
# with:
74-
# file: simplelocalize-cli-windows.exe
75-
# args: --best
76-
- name: 'Upload artifact'
77-
uses: actions/upload-artifact@v3
78-
with:
79-
name: simplelocalize-cli-windows
80-
path: 'simplelocalize-cli-windows.exe'
81-
8235
build-unix:
83-
needs: [ build-jar ]
84-
name: "Build ${{ matrix.os }} executable"
36+
name: "Build ${{ matrix.label }} executable"
8537
strategy:
8638
matrix:
87-
os: [ ubuntu-latest, macos-latest ]
8839
include:
8940
- os: 'ubuntu-latest'
9041
label: 'linux'
42+
filename: 'simplelocalize-cli'
9143
- os: 'macos-latest'
9244
label: 'mac'
45+
filename: 'simplelocalize-cli'
46+
- os: 'windows-latest'
47+
label: 'windows'
48+
filename: 'simplelocalize-cli.exe'
9349
runs-on: ${{ matrix.os }}
9450
steps:
9551
- uses: actions/checkout@v3
96-
- name: 'Get Version Number'
97-
run: |
98-
echo "::set-env name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
99-
- name: 'Get JAR Artifact'
100-
uses: actions/download-artifact@v3
101-
with:
102-
name: 'simplelocalize-cli-${{env.VERSION}}.jar'
103-
- name: "Setup GraalVM"
104-
uses: DeLaGuardo/setup-graalvm@master
52+
name: "Checkout"
53+
- uses: graalvm/setup-graalvm@v1
54+
name: "Install GraalVM"
10555
with:
106-
graalvm-version: '20.1.0.java11'
107-
- name: "Install Native Image"
108-
run: gu install native-image
109-
- name: "Build Native Image"
110-
run: native-image --no-server -Dmicronaut.env.deduction=false --report-unsupported-elements-at-runtime -cp simplelocalize-cli-*.jar -H:Name="simplelocalize-cli-${{matrix.label}}" io.simplelocalize.cli.SimplelocalizeCliCommand
111-
# - name: "Optimize executable"
112-
# if: matrix.label != 'mac'
113-
# uses: svenstaro/upx-action@v2
114-
# with:
115-
# file: simplelocalize-cli-${{ matrix.label }}
116-
# args: --best
56+
version: '22.3.2'
57+
java-version: '17.0.7'
58+
distribution: 'graalvm'
59+
components: 'native-image'
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
native-image-job-reports: 'true'
62+
- name: "Build executable"
63+
run: mvn -DskipTests -Pnative clean package
64+
- name: "Test executable"
65+
run: ./target/${{ matrix.filename }} --version
11766
- name: "Upload artifact"
11867
uses: actions/upload-artifact@v3
11968
with:
12069
name: simplelocalize-cli-${{ matrix.label }}
121-
path: simplelocalize-cli-${{ matrix.label }}
70+
path: ./target/${{ matrix.filename }}

.github/workflows/install-execute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ macos-10.15, macos-11, macos-12,ubuntu-18.04, ubuntu-20.04, ubuntu-22.04 ]
16-
version: [ '2.1', '2.0' ]
16+
version: [ '2.4', '2.3', '2.2', '2.1', '2.0' ]
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Test on ${{ matrix.os }}
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ windows-2019, windows-2022 ]
29-
version: [ '2.1', '2.0' ]
29+
version: [ '2.4', '2.3', '2.2', '2.1', '2.0' ]
3030
steps:
3131
- uses: actions/checkout@v3
3232
- name: Test on ${{ matrix.os }}

.github/workflows/run-tests.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Tests
1+
name: Run tests
22

33
on:
44
pull_request:
@@ -18,27 +18,22 @@ jobs:
1818
- uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
21-
- name: "Set up JDK 11"
22-
uses: actions/setup-java@v3
21+
- uses: actions/setup-java@v3
22+
name: "Install Java"
2323
with:
24-
java-version: '11'
25-
distribution: 'adopt'
24+
java-version: '17'
25+
distribution: 'temurin'
26+
cache: 'maven'
2627
- name: Cache SonarCloud packages
2728
uses: actions/cache@v3
2829
with:
2930
path: ~/.sonar/cache
3031
key: ${{ runner.os }}-sonar
3132
restore-keys: ${{ runner.os }}-sonar
32-
- name: Cache Maven packages
33-
uses: actions/cache@v3
34-
with:
35-
path: ~/.m2
36-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
37-
restore-keys: ${{ runner.os }}-m2
3833
- name: "Test with Maven"
3934
run: mvn --settings .maven.xml clean install -B -V
4035
- name: "SonarCloud Analyze"
4136
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4338
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4439
run: mvn clean -B verify -Ptest org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ $RECYCLE.BIN/
5959
# Windows shortcuts
6060
*.lnk
6161

62+
/simplelocalize.yml
63+
/dependency-reduced-pom.xml
64+
/build-j17.sh
65+
/build-far-jar.sh
66+
/build-m1.sh
67+
/install.sh
68+
/simplelocalize-init-command.yml

junit/mock-server/test.json

Lines changed: 17 additions & 1 deletion
Large diffs are not rendered by default.

micronaut-cli.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)