File tree Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ jobs:
94
94
- name : Test in ubuntu 20.04 container
95
95
if : ${{ inputs.do_test }}
96
96
run : |
97
- docker run -v ./dist:/dist -v ./scripts:/scripts tester-image_ubuntu2004:latest \
97
+ docker run -v ./dist:/dist tester-image_ubuntu2004:latest \
98
98
/scripts/test_emacs_in_docker.sh /dist/Emacs.AppImage
99
99
100
100
- name : Test in archlinux container
101
101
if : ${{ inputs.do_test }}
102
102
run : |
103
- docker run -v ./dist:/dist -v ./scripts:/scripts tester-image_archlinux:latest \
103
+ docker run -v ./dist:/dist tester-image_archlinux:latest \
104
104
/scripts/test_emacs_in_docker.sh /dist/Emacs.AppImage
105
105
106
106
- name : Upload binary as artifact
Original file line number Diff line number Diff line change 52
52
- name : Build and export
53
53
uses : docker/build-push-action@v5
54
54
with :
55
+ context : tests/
55
56
file : tests/Dockerfile.ubuntu2004
56
57
# cache-from: type=gha
57
58
# cache-to: type=gha,mode=max
79
80
- name : Build and export
80
81
uses : docker/build-push-action@v5
81
82
with :
83
+ context : tests/
82
84
file : tests/Dockerfile.archlinux
83
85
# cache-from: type=gha
84
86
# cache-to: type=gha,mode=max
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ FROM archlinux:latest
3
3
RUN pacman-key --init \
4
4
&& pacman -Syu --noconfirm \
5
5
&& pacman -S --noconfirm xfce4
6
+
7
+ ADD scripts /scripts
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ FROM ubuntu:20.04
3
3
ENV DEBIAN_FRONTEND=noninteractive
4
4
5
5
RUN apt-get update && apt-get install -y ubuntu-desktop
6
+
7
+ ADD scripts /scripts
Original file line number Diff line number Diff line change
1
+ ; ;; test.el --- -*- lexical-binding : t ; -*-
2
+
3
+ ; ;; Commentary:
4
+
5
+ ; ;; Code:
6
+
7
+ (require 'cl-macs )
8
+
9
+ (message " hello world! " )
10
+
11
+ (cl-assert (native-comp-available-p))
12
+ (cl-assert (native-compile '(lambda (x) (* x 2 ))))
13
+
14
+ (cl-assert (executable-find " emacsclient" ))
15
+ (cl-assert (executable-find " emacs" ))
16
+ (cl-assert (executable-find " hexl" ))
17
+
18
+ (cl-assert (file-exists-p (file-name-concat doc-directory " NEWS" )))
19
+ (cl-assert (file-exists-p (file-name-concat data-directory " charsets/GBK.map" )))
20
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
3
+ SCRIPTS_DIR=" $( realpath " $( dirname " $0 " ) " ) "
3
4
EMACS_APPIMAGE=" $( realpath " $1 " ) "
4
5
5
6
cd " $( mktemp -d) "
6
7
7
8
cp " $EMACS_APPIMAGE " ./Emacs.AppImage
8
9
chmod +x ./Emacs.AppImage
9
10
10
- cat << -EOF > test.el
11
- (native-compile '(lambda (x) (* x 2)))
12
- (message "hello world!")
13
- EOF
14
-
15
11
./Emacs.AppImage --appimage-extract
16
12
cd squashfs-root
17
- ./AppRun --batch -l ../test.el
13
+
14
+ ./AppRun --batch -l " $SCRIPTS_DIR /test.el"
15
+ [[ " $( ./AppRun --emacs-appimage-run-as emacsclient --version) " =~ emacsclient* ]]
You can’t perform that action at this time.
0 commit comments