-
Notifications
You must be signed in to change notification settings - Fork 0
142 lines (135 loc) · 3.71 KB
/
windows.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
name: Windows
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
build-win64:
runs-on: windows-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
arch: [x86_64]
include:
- arch: x86_64
arch2: amd64
bit: 64
target: x86-64
env:
LISP: sbcl-bin
RESULT_NAME: windows-${{ matrix.arch2 }}
RESULT_PATH: windows-${{ matrix.arch2 }}
RESULT_PATH_SUB: roswell
SBCL_OPTIONS: --fancy
ARCH: ${{ matrix.target }}
VERSION: ${{ secrets.VERSION }}
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
environment: SET_VERSION
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: msys2/[email protected]
with:
msystem: MINGW${{ matrix.bit }}
path-type: inherit
release: true
update: true
install: 'base-devel mingw-w64-${{ matrix.arch }}-toolchain curl unzip'
- name: Run MSYS2 once
shell: msys2 {0}
run: |
pwd
echo $MSYSTEM
echo $MSYS2_PATH_TYPE
echo $PATH
- name: install roswell
shell: msys2 {0}
run: |
gcc -v
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
ros install snmsts/sn.github roswell/sbcl_bin
- name: build sbcl
shell: msys2 {0}
run: |
make zstd
find /mingw64 | grep zstd
rm /mingw64/lib/libzstd.dll.a
mv /mingw64/bin/libzstd.dll /mingw64/bin/libzstd.dll_
bash -c 'cd zstd/lib;make CFLAGS="-fPIC" libzstd.a-release;cp libzstd.a /mingw64/lib;cp *.h /mingw64/include'
if [ "$VERSION" = "" ]; then
OS=windows make latest-version compile archive;
else
OS=windows make compile archive;
fi
- name: upload
shell: msys2 {0}
run: |
ls
if [ "$VERSION" = "" ]; then
make latest-version upload-archive;
else
make upload-archive;
fi
build-win32:
runs-on: windows-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
arch: [i686]
include:
- arch: i686
arch2: i686
bit: 64
target: x86
env:
LISP: sbcl-bin
RESULT_NAME: windows-${{ matrix.arch2 }}
RESULT_PATH: windows-${{ matrix.arch2 }}
RESULT_PATH_SUB: roswell
SBCL_OPTIONS:
ARCH: ${{ matrix.target }}
VERSION: ${{ secrets.VERSION }}
GITHUB_OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
environment: SET_VERSION
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: msys2/[email protected]
with:
msystem: MINGW${{ matrix.bit }}
path-type: inherit
release: true
update: true
install: 'base-devel mingw-w64-${{ matrix.arch }}-toolchain curl unzip'
- name: Run MSYS2 once
shell: msys2 {0}
run: |
pwd
echo $MSYSTEM
echo $MSYS2_PATH_TYPE
echo $PATH
- name: install roswell
shell: msys2 {0}
run: |
gcc -v
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
ros install snmsts/sn.github
- name: build sbcl
shell: msys2 {0}
run: |
if [ "$VERSION" = "" ]; then
PATH=/mingw32/bin:$PATH make latest-version compile;
else
PATH=/mingw32/bin:$PATH make compile;
fi
- name: upload
shell: msys2 {0}
run: |
ls
if [ "$VERSION" = "" ]; then
make latest-version archive upload-archive;
else
make archive upload-archive;
fi