|
29 | 29 | graalvm-version: 21.3.0 |
30 | 30 | native-image: true |
31 | 31 |
|
32 | | - - name: Build native spp-cli |
| 32 | + - name: Export Properties |
| 33 | + id: properties |
| 34 | + shell: bash |
| 35 | + run: | |
| 36 | + PROPERTIES="$(./gradlew properties --console=plain -q)" |
| 37 | + VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" |
| 38 | + echo "::set-output name=version::$VERSION" |
| 39 | + echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV |
| 40 | + echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV |
| 41 | +
|
| 42 | + - name: Build native spp-cli (Release) |
| 43 | + if: github.ref == 'refs/heads/master' |
| 44 | + run: gradle assemble nativeImage -Dbuild.profile=release -PcliVersion=$SPP_RELEASE_VERSION |
| 45 | + |
| 46 | + - name: Build native spp-cli (Snapshot) |
33 | 47 | run: gradle assemble nativeImage -Dbuild.profile=release |
34 | 48 |
|
35 | 49 | - name: "[CLI] Get version" |
|
65 | 79 | graalvm-version: 21.3.0 |
66 | 80 | native-image: true |
67 | 81 |
|
68 | | - - name: Build native spp-cli.exe |
| 82 | + - name: Export Properties |
| 83 | + id: properties |
| 84 | + shell: bash |
| 85 | + run: | |
| 86 | + PROPERTIES="$(./gradlew properties --console=plain -q)" |
| 87 | + VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" |
| 88 | + echo "::set-output name=version::$VERSION" |
| 89 | + echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV |
| 90 | + echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV |
| 91 | +
|
| 92 | + - name: Build native spp-cli.exe (Release) |
| 93 | + if: github.ref == 'refs/heads/master' |
| 94 | + run: ./gradlew assemble nativeImage '-Dbuild.profile=release' '-PcliVersion=$SPP_RELEASE_VERSION' |
| 95 | + shell: powershell |
| 96 | + |
| 97 | + - name: Build native spp-cli.exe (Snapshot) |
69 | 98 | run: ./gradlew assemble nativeImage '-Dbuild.profile=release' |
70 | 99 | shell: powershell |
71 | 100 |
|
@@ -114,8 +143,14 @@ jobs: |
114 | 143 | VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" |
115 | 144 | echo "::set-output name=version::$VERSION" |
116 | 145 | echo "SPP_CLI_VERSION=$VERSION" >> $GITHUB_ENV |
| 146 | + echo "SPP_RELEASE_VERSION=${VERSION/-SNAPSHOT/}" >> $GITHUB_ENV |
| 147 | +
|
| 148 | + - name: Build native spp-cli (Release) |
| 149 | + if: github.ref == 'refs/heads/master' |
| 150 | + run: ./gradlew assembleUp nativeImage -Dbuild.profile=release -PcliVersion=$SPP_RELEASE_VERSION |
117 | 151 |
|
118 | | - - run: ./gradlew assembleUp nativeImage -Dbuild.profile=release |
| 152 | + - name: Build native spp-cli (Snapshot) |
| 153 | + run: ./gradlew assembleUp nativeImage -Dbuild.profile=release |
119 | 154 |
|
120 | 155 | - name: Docker IPs |
121 | 156 | run: docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) |
|
0 commit comments