-
Notifications
You must be signed in to change notification settings - Fork 4
92 lines (80 loc) · 2.82 KB
/
main.yml
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
name: CI
on:
push:
pull_request:
jobs:
build-linux:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: install packages
run: |
uname -a
sudo apt update
sudo apt upgrade -y
sudo apt install -y make gcc libx11-dev ncurses-dev
- uses: actions/checkout@v4
with:
#repository: tsutsui/emacs-18.59-netbsd
fetch-depth: 200
- name: configure and make
run: |
sudo sh -c "echo 0 > /proc/sys/kernel/randomize_va_space"
cp src/config.h-linux src/config.h
make
sudo make install
build-linux-aarch64:
name: "build-linux (ubuntu aarch64)"
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: actions/checkout@v4
with:
#repository: tsutsui/emacs-18.59-netbsd
fetch-depth: 200
- name: Run build process with Docker
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/grimbough/bioc-with-tinytex:devel-arm64
options: |
--platform linux/arm64
--volume ${{ github.workspace }}:/build
--workdir /build
run: |
uname -a
sudo apt update
sudo apt upgrade -y
sudo apt install -y make gcc libx11-dev ncurses-dev
cp src/config.h-linux src/config.h
make
sudo make install
build-netbsd:
name: "build-netbsd (NetBSD/amd64 10.0 with pkgsrc)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install packages and run configure and make (on the NetBSD VM)
uses: vmactions/netbsd-vm@v1
with:
release: "10.0"
usesh: true
copyback: false
# Check https://github.com/NetBSD/pkgsrc/blob/trunk/net/sayaka/Makefile to check dependencies
prepare: |
uname -a
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
export PATH
ftp -o - https://cdn.NetBSD.org/pub/NetBSD/NetBSD-`uname -r`/amd64/binary/sets/xbase.tar.xz | tar -C / -zxpf - ./usr/X11R7/bin ./usr/X11R7/include ./usr/X11R7/lib ./usr/X11R7/share
ftp -o - https://cdn.NetBSD.org/pub/NetBSD/NetBSD-`uname -r`/amd64/binary/sets/xcomp.tar.xz | tar -C / -zxpf - ./usr/X11R7/include ./usr/X11R7/lib ./usr/X11R7/share
run: |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
export PATH
cp src/config.h-netbsd src/config.h
make
make install