Skip to content

IEP-1762: Eim gui cli launch fixes #4145

IEP-1762: Eim gui cli launch fixes

IEP-1762: Eim gui cli launch fixes #4145

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches:
- master
- release/**
pull_request:
branches:
- master
- release/**
permissions:
contents: read
checks: write
actions: write
jobs:
build_linux:
runs-on: [self-hosted, eclipse, BrnoUBU0004]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install ESP-IDF via eim
uses: espressif/install-esp-idf-action@v1
with:
version: 'v5.4'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Remove stale Maven toolchains.xml
run: rm -f "${HOME}/.m2/toolchains.xml"
- name: Build with Maven
run: export NO_AT_BRIDGE=1 && mvn clean verify -Djarsigner.skip=true -DskipTests=false -DtestWorkspace=/opt/actions-runner/_work/workspace
- name: Publish Test Reports
if: ${{ always() }}
uses: phoenix-actions/test-reporting@v12
with:
name: Linux Test Reports
path:
tests/*/*/*/TEST-*.xml
reporter: java-junit
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: mvn clean verify -Djarsigner.skip=true
- name: Extract version number
id: extract_version
run: |
# List all files and extract the version number from the file names
version=$(ls releng/com.espressif.idf.product/target/products/Espressif-IDE-*.tar.gz | sed -E 's/.*Espressif-IDE-([0-9]+\.[0-9]+\.[0-9]+)-.*/\1/' | head -n 1)
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Upload build artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: com.espressif.idf.update-${{ env.VERSION }}
path: releng/com.espressif.idf.update/target/repository
- name: Upload Windows x86_64 artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: Espressif-IDE-${{ env.VERSION }}-win32
path: releng/com.espressif.idf.product/target/products/Espressif-IDE-${{ env.VERSION }}-win32.win32.x86_64.zip
- name: Upload Linux x86_64 artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: Espressif-IDE-${{ env.VERSION }}-linux.gtk.x86_64
path: releng/com.espressif.idf.product/target/products/Espressif-IDE-${{ env.VERSION }}-linux.gtk.x86_64.tar.gz
- name: Upload Linux ARM64 artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: Espressif-IDE-${{ env.VERSION }}-linux.gtk.aarch64
path: releng/com.espressif.idf.product/target/products/Espressif-IDE-${{ env.VERSION }}-linux.gtk.aarch64.tar.gz
- name: Codesign Espressif-IDE
uses: espressif/release-sign@master
with:
path: releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa
macos-signing-identity: ${{ secrets.MACOS_CS_IDENTITY_ID }}
macos-certificate: ${{ secrets.MACOS_CS_CERTIFICATE }}
macos-certificate-pwd: ${{ secrets.MACOS_CS_CERTIFICATE_PWD }}
macos-entitlements: releng/com.espressif.idf.product/entitlements/espressif-ide.entitlement
- name: Create DMG for macOS x86_64
run: $PWD/releng/ide-dmg-builder/ide-dmg-builder.sh
- name: Create DMG for macOS aarch64
run: $PWD/releng/ide-dmg-builder/ide-dmg-builder-aarch64.sh
- name: Codesign Espressif-IDE
uses: espressif/release-sign@master
with:
path: releng/ide-dmg-builder
macos-signing-identity: ${{ secrets.MACOS_CS_IDENTITY_ID }}
macos-certificate: ${{ secrets.MACOS_CS_CERTIFICATE }}
macos-certificate-pwd: ${{ secrets.MACOS_CS_CERTIFICATE_PWD }}
- name: Upload espressif-ide-macosx.cocoa.x86_64 dmg
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: Espressif-IDE-${{ env.VERSION }}-macosx.cocoa.x86_64
path: releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-x86_64.dmg
- name: Upload espressif-ide-macosx.cocoa.aarch64 dmg
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: Espressif-IDE-${{ env.VERSION }}-macosx.cocoa.aarch64
path: releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-aarch64.dmg