Skip to content

Commit b28aef4

Browse files
committed
Test
Signed-off-by: Günter Neiß <gneiss@web.de>
1 parent cff2a6f commit b28aef4

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/LinuxBuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
find / -iname "*.AppImage"
5353
cp /__w/arduino-ide/arduino-ide/electron-app/dist/*.AppImage .
5454
- name: Mod AppImage to use chrome-sandbox of local os
55+
if: ${{ success() }}
5556
run: |
5657
set -x
5758
set -v
@@ -72,6 +73,7 @@ jobs:
7273
cd ..
7374
rm -r t
7475
- name: Install gh and jq
76+
if: ${{ success() }}
7577
env:
7678
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7779
working-directory: './'
@@ -85,6 +87,7 @@ jobs:
8587
apt update
8688
apt install -y gh jq
8789
- name: Upload to GitHub Releases
90+
if: ${{ success() }}
8891
run: |
8992
set -x
9093
set -v

.github/workflows/Test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test
2+
on:
3+
push:
4+
workflow_dispatch:
5+
env:
6+
NODE_VERSION: '18.17'
7+
YARN_VERSION: '1.22'
8+
GO_VERSION: '1.21'
9+
GH_TOKEN: ${{ github.token }}
10+
jobs:
11+
build:
12+
name: build Linux
13+
runs-on: ubuntu-latest
14+
container: { "image": "ghcr.io/arduino/arduino-ide/linux:main" }
15+
defaults:
16+
run:
17+
shell: bash
18+
timeout-minutes: 90
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Mod AppImage to use chrome-sandbox of local os
23+
run: |
24+
set -x
25+
set -v
26+
touch Test.AppImage
27+
EXE=$(readlink -f *.AppImage)
28+
chmod a+x "${EXE}"
29+
mkdir t
30+
cd t
31+
"${EXE}" --appimage-extract
32+
cd squashfs-root/
33+
rm chrome-sandbox
34+
ln -s /opt/google/chrome/chrome-sandbox chrome-sandbox
35+
cd ..
36+
TOOL=".github/tools/appimagetool-x86_64_2019-05-01.AppImage"
37+
ARCH=x86_64 ${TOOL} squashfs-root
38+
rm -r squashfs-root/
39+
rm "${EXE}"
40+
mv *.AppImage ../
41+
cd ..
42+
rm -r t
43+
44+

0 commit comments

Comments
 (0)