-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (69 loc) · 2.37 KB
/
test.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
name: Binaries Windows 19 Server
on:
workflow_dispatch:
branches: [ master ]
env:
VERSION: "091224b1"
jobs:
build:
runs-on: windows-2019
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: download winlibs
shell: cmd
run: |
curl -OL 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
PATH=%CD%\mingw32\bin;%PATH%
gcc --version
- name: compile bfs
shell: cmd
run: |
gcc --version
PATH=%CD%\mingw32\bin;%PATH%
gcc --version
mingw32-make -f win32winlibs.gmk bfs/exe
- name: compile mec
shell: cmd
run: |
PATH=%CD%\mingw32\bin;%PATH%
gcc --version
ld --version
mingw32-make -f win32winlibs.gmk mec
- name: compile mew
shell: cmd
run: |
PATH=%CD%\mingw32\bin;%PATH%
mingw32-make -f win32winlibs.gmk mew
- name: create mecb
shell: cmd
run: |
PATH=%CD%\mingw32\bin;%PATH%
mingw32-make -f win32winlibs.gmk mecb
- name: create mewb
shell: cmd
run: |
PATH=%CD%\mingw32\bin;%PATH%
mingw32-make -f win32winlibs.gmk mewb
- name: Make release
shell: pwsh
run: |
$env:VERSION ='091224b1'
mkdir MicroEmacs09-${env:VERSION}-Windows
mkdir MicroEmacs09-${env:VERSION}-Windows/bin
cp bfs/bfs.exe MicroEmacs09-${env:VERSION}-Windows/bin/
cp src/.win32winlibs-release-mew/mew32.exe MicroEmacs09-${env:VERSION}-Windows/bin/
cp src/.win32winlibs-release-mec/mec32.exe MicroEmacs09-${env:VERSION}-Windows/bin/
cp license.txt MicroEmacs09-${env:VERSION}-Windows/
cp COPYING MicroEmacs09-${env:VERSION}-Windows/
cp README-standalone.md MicroEmacs09-${env:VERSION}-Windows/
cd jasspa
7z a macros.zip macros
cd ..
cp jasspa/macros.zip MicroEmacs09-${env:VERSION}-Windows/
- name: Upload Windows WinlibRelease files
uses: actions/upload-artifact@v4
with:
name: MicroEmacs09-091224b1-Windows
path: MicroEmacs09-091224b1-Windows