-
Notifications
You must be signed in to change notification settings - Fork 133
143 lines (117 loc) · 4.65 KB
/
ci.yml
File metadata and controls
143 lines (117 loc) · 4.65 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# 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/**
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: 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