-
Notifications
You must be signed in to change notification settings - Fork 1
145 lines (121 loc) · 4.87 KB
/
binaries-mingw32gcc.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Binaries Windows (linux-mingw-gcc)
on:
workflow_dispatch:
branches: [ master ]
env:
VERSION: "091224b2"
jobs:
build:
runs-on: ubuntu-22.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: developer library installs
run: |
sudo apt install build-essential mingw-w64 gcc-mingw-w64-i686
sudo apt install libz-mingw-w64 libz-mingw-w64-dev
sudo apt install desktop-file-utils
export VRS=`grep -E 'meYEAR|meMONTH|meDAY' src/evers.h | head -n 3 | awk '{ print $3 }' | paste -sd '-' | sed 's/[-"]//g'`
echo "VRS=$VRS" >> $GITHUB_ENV
- name: make bfs binary
run: make -f win32mingw.gmk bfs/bin
- name: make mec binary
run: make -f win32mingw.gmk mec
- name: make mew binary
run: make -f win32mingw.gmk mew
- name: make mecb binary
run: |
make -f win32mingw.gmk mecb
- name: make mecw binary
run: make -f win32mingw.gmk mewb
- name: make mecw binary
run: make -f win32mingw.gmk bfs/exe
- name: make brew package
run: |
make -f win32mingw.gmk brew
rm -rf brew-*/
- name: make scope package
run: |
make -f win32mingw.gmk scoop
rm -rf mecw-scoop-*/
- name: Download zlib1.dll
run: |
wget https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-16.0.0-10.0.0-ucrt-r5/winlibs-i686-posix-dwarf-gcc-12.2.0-mingw-w64ucrt-10.0.0-r5.zip
unzip -q winlibs-i686-posix-dwarf-gcc-12.2.0-mingw-w64ucrt-10.0.0-r5.zip
cp mingw32/bin/zlib1.dll .
wget https://github.com/madler/zlib/raw/develop/LICENSE -O zlib-LICENSE.txt
- name: Make release
run: |
mkdir MicroEmacs09-${VRS}-Windows
mkdir MicroEmacs09-${VRS}-Windows/bin
#cp zlib1.dll MicroEmacs09-${VRS}-Windows/bin/
#cp zlib-LICENSE.txt MicroEmacs09-${VRS}-Windows/bin/
cp bfs/bfs.exe MicroEmacs09-${VRS}-Windows/bin/
cp src/.win32mingw-release-mew/mew32.exe MicroEmacs09-${VRS}-Windows/bin/
cp src/.win32mingw-release-mec/mec32.exe MicroEmacs09-${VRS}-Windows/bin/
cp windows-*me*.exe MicroEmacs09-${VRS}-Windows/bin/
cp license.txt MicroEmacs09-${VRS}-Windows/
cp COPYING MicroEmacs09-${VRS}-Windows/
cp README-standalone.md MicroEmacs09-${VRS}-Windows/
cd jasspa
zip macros.zip macros/*
cd ..
cp jasspa/macros.zip MicroEmacs09-${VRS}-Windows/
- name: Make mecb release
run: |
mkdir MicroEmacs09-${VRS}-Windows-mecb
mkdir MicroEmacs09-${VRS}-Windows-mecb/bin
#cp zlib1.dll MicroEmacs09-${VRS}-Windows-mecb/bin/
#cp zlib-LICENSE.txt MicroEmacs09-${VRS}-Windows-mecb/bin/
cp bfs/bfs.exe MicroEmacs09-${VRS}-Windows-mecb/bin/
cp windows-*-mecb.exe MicroEmacs09-${VRS}-Windows-mecb/bin/
cp license.txt MicroEmacs09-${VRS}-Windows-mecb/
cp COPYING MicroEmacs09-${VRS}-Windows-mecb/
cp README-standalone.md MicroEmacs09-${VRS}-Windows-mecb/
- name: Make mewb release
run: |
mkdir MicroEmacs09-${VRS}-Windows-mewb
mkdir MicroEmacs09-${VRS}-Windows-mewb/bin
#cp zlib1.dll MicroEmacs09-${VRS}-Windows-mewb/bin/
#cp zlib-LICENSE.txt MicroEmacs09-${VRS}-Windows-mewb/bin/
cp bfs/bfs.exe MicroEmacs09-${VRS}-Windows-mewb/bin/
cp windows-*-mewb.exe MicroEmacs09-${VRS}-Windows-mewb/bin/
cp license.txt MicroEmacs09-${VRS}-Windows-mewb/
cp COPYING MicroEmacs09-${VRS}-Windows-mewb/
cp README-standalone.md MicroEmacs09-${VRS}-Windows-mewb/
- name: Upload Windows Release files
uses: actions/upload-artifact@v4
with:
name: MicroEmacs09-${{ env.VRS }}-Windows
path: MicroEmacs09-${{ env.VRS }}-Windows
- name: Upload Windows mecb Release files
uses: actions/upload-artifact@v4
with:
name: MicroEmacs09-${{ env.VRS }}-Windows-mecb
path: MicroEmacs09-${{ env.VRS }}-Windows-mecb
- name: Upload Windows mewb Release files
uses: actions/upload-artifact@v4
with:
name: MicroEmacs09-${{ env.VRS }}-Windows-mewb
path: MicroEmacs09-${{ env.VRS }}-Windows-mewb
- name: Combined Release
run: |
make -f win32mingw.gmk release app=mecb
make -f win32mingw.gmk release app=mewb
export DIR=`ls windows-*-mecb.exe | sed 's/-mecb.exe//'`
echo $DIR
- name: Upload Ubuntu Combined Release
uses: actions/upload-artifact@v4
with:
name: Release-Windows
path: windows-*/
- name: Upload Brew Package
uses: actions/upload-artifact@v4
with:
name: brew-windows
path: brew-*
- name: Upload Scoop Package
uses: actions/upload-artifact@v4
with:
name: scoop-windows
path: scoop-*