Skip to content

Commit b0330f4

Browse files
committed
always use repo version
1 parent dc68aac commit b0330f4

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
matrix:
4545
source:
4646
- name: "29.1"
47-
tarball: "https://ftp.gnu.org/gnu/emacs/emacs-29.1.tar.gz"
48-
tarball_dir: "emacs-29.1"
47+
repo: "emacs-mirror/emacs"
48+
ref: "emacs-29.1"
4949
- name: "29.1_native_json_rpc"
5050
repo: "blahgeek/emacs"
51-
commit: "b8e9c30dcae19eaa8deed9bd594e84d5cf6244cb"
51+
ref: "b8e9c30dcae19eaa8deed9bd594e84d5cf6244cb"
5252
build_with_x11: [ "yes", "no" ]
5353

5454
steps:
@@ -58,19 +58,12 @@ jobs:
5858
- name: Checkout
5959
uses: actions/checkout@v4
6060

61-
- name: Download emacs source from tarball
62-
run: |
63-
curl -L ${{ matrix.source.tarball }} | tar xz
64-
mv ${{ matrix.source.tarball_dir }} emacs-src
65-
if: ${{ matrix.source.tarball }}
66-
6761
- name: Download emacs source from repo
6862
uses: actions/checkout@v4
6963
with:
7064
repository: ${{ matrix.source.repo }}
71-
ref: ${{ matrix.source.commit }}
65+
ref: ${{ matrix.source.ref }}
7266
path: emacs-src
73-
if: ${{ matrix.source.repo }}
7467

7568
- name: Download artifact
7669
uses: actions/download-artifact@v2
@@ -84,7 +77,7 @@ jobs:
8477
docker image ls -a
8578
8679
- name: Run and package
87-
run: ./run-and-package.sh builder-image:latest ./emacs-src BUILD_WITH_X11=${{ matrix.build_with_x11 }} BUILD_RUN_AUTOGEN=${{ matrix.source.repo && 'yes' || 'no' }}
80+
run: ./run-and-package.sh builder-image:latest ./emacs-src BUILD_WITH_X11=${{ matrix.build_with_x11 }}
8881

8982
- name: Upload binary to release
9083
uses: svenstaro/upload-release-action@v2

build-local.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ rm -rf ./dist ./build
55

66
mkdir build
77
pushd build
8-
wget https://ftp.gnu.org/gnu/emacs/emacs-29.1.tar.xz
9-
tar xf emacs-29.1.tar.xz
10-
mv emacs-29.1 emacs-src
8+
git clone -b json-rpc-29 --depth 1 https://github.com/blahgeek/emacs emacs-src
119
popd
1210

1311
docker build . # next step has no log, so build first
1412
IMAGE_ID=$(docker build -q .)
1513

16-
./run-and-package.sh "$IMAGE_ID" ./build/emacs-src BUILD_WITH_X11=yes
14+
./run-and-package.sh "$IMAGE_ID" ./build/emacs-src BUILD_WITH_X11=no

scripts/build_emacs_in_docker.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ cp -r emacs-src emacs
88

99
pushd emacs
1010

11-
if [ "$BUILD_RUN_AUTOGEN" = "yes" ]; then
12-
./autogen.sh
13-
fi
11+
./autogen.sh
1412

1513
ARGS=""
1614
ARGS+=" --disable-locallisppath"
@@ -38,11 +36,7 @@ env \
3836
env \
3937
PATH=$DIST_APPDIR/bin:$PATH \
4038
LD_LIBRARY_PATH=$DIST_APPDIR/lib \
41-
make -j$(nproc)
42-
env \
43-
PATH=$DIST_APPDIR/bin:$PATH \
44-
LD_LIBRARY_PATH=$DIST_APPDIR/lib \
45-
make install-strip
39+
bash -c "make -j$(nproc) && make install"
4640
popd
4741

4842
cp $SCRIPT_DIR/AppRun $DIST_APPDIR/AppRun

0 commit comments

Comments
 (0)