Bump org.springframework.boot:spring-boot-dependencies from 3.3.5 to 3.4.0 in /cli #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ⌨️ CLI - Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'cli/**' | |
- '.github/workflows/cli-continuous-integration.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'cli/**' | |
- '.github/workflows/cli-continuous-integration.yml' | |
jobs: | |
build-jar: | |
name: 'Build JAR package' | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/cli | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' | |
java-version: '23' | |
check-latest: false | |
cache: 'maven' | |
- name: Build with Maven | |
run: './mvnw package' | |
- name: Temporarily save package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: java-binary | |
path: | | |
${{ github.workspace }}/cli/target/*.jar | |
!${{ github.workspace }}/cli/target/original-*.jar | |
retention-days: 30 | |
build-native-image: | |
name: Native image build on ${{ matrix.os }} and Java ${{ matrix.jdk-version }} | |
needs: [ build-jar ] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
jdk-version: ['21'] | |
os: | |
- ubuntu-22.04 | |
- macos-latest # Intel x64 | |
- macos-latest-xlarge # Apple Silicon arm64 | |
- windows-latest | |
steps: | |
- name: Download application package | |
uses: actions/download-artifact@v4 | |
with: | |
name: java-binary | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
distribution: 'graalvm' | |
java-version: ${{ matrix.jdk-version }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build native image on Linux | |
run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-linux | |
if: runner.os == 'Linux' | |
- name: Build native image on Mac OS X (Intel x64) | |
run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-macos | |
if: runner.os == 'macOS' && runner.arch == 'X64' | |
- name: Build native image on Mac OS X (Apple Silicon arm64) | |
run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-macos-arm64 | |
if: runner.os == 'macOS' && runner.arch == 'ARM64' | |
- name: Build native image on Windows | |
run: native-image --enable-url-protocols=https -jar nubesgen-cli-*.jar nubesgen-cli-windows | |
if: runner.os == 'Windows' | |
- name: Temporarily save package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nubesgen-cli-${{ matrix.os }}-java-${{ matrix.jdk-version }} | |
path: | | |
nubesgen-cli-* | |
!*.txt | |
!*.jar | |
retention-days: 30 |