-
Notifications
You must be signed in to change notification settings - Fork 2
87 lines (75 loc) · 2.63 KB
/
cygwin.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
name: Binaries Windows-Cygwin
on:
workflow_dispatch:
branches: [ master ]
env:
VERSION: "091224"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Cygwin
uses: egor-tensin/setup-cygwin@v4
with:
packages: bash git make gcc-core gcc-g++ python3-pip wget zlib-devel libncurses-devel libXt-devel zip unzip
install-dir: C:\cygwin
- name: Modify PATH
run: |
echo "C:\cygwin\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Verify Cygwin installation
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
echo $PATH
which bash
bash --version
- name: Run your commands
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
# Your Cygwin commands here
cygcheck -c
make --version
gcc --version
- name: Install apt-cyg
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
chmod +x /bin/apt-cyg
apt-cyg install nano
- name: Verify Python Installation
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
python3 --version
which python3
- name: Clone MicroEmacs
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
mkdir workspace
cd workspace
git clone https://github.com/mittelmark/microemacs.git
cd microemacs
make -f cygwin.gmk mec mecb
make -f cygwin.gmk mew mewb
make -f cygwin.gmk mecw mecwb
ls
ls -l ./cygwin-3.5-microemacs-${VERSION}-mecb.exe
echo `./cygwin-3.5-microemacs-${VERSION}-mecb.exe -V`
- name: Cygwin Combined Release
run: |
make -f cygwin.gmk release app=mecb
make -f cygwin.gmk release app=mewb
make -f cygwin.gmk release app=mecwb
- name: Upload Cygwin Combined Release
uses: actions/upload-artifact@v4
with:
name: Release-cygwin-3.5-windows
path: cygwin-*/
- name: Install MicroEmacs
shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
echo $PATH
which pip3
pip3 install https://github.com/user-attachments/files/16840516/meapp-9.12.24b1.tar.gz
export PATH=~/.local/bin:$PATH
meapp -V