-
Notifications
You must be signed in to change notification settings - Fork 0
162 lines (159 loc) · 5.77 KB
/
others.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Build others
on:
workflow_dispatch:
jobs:
build-macos-x86_64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
repository: gatk555/ngspice
ref: gh_pm45
- name: Install Dependencies
run: |
brew install make automake bison
brew install libxaw
# compile_macos_gcc.sh expects this path. Kludge it.
sudo mkdir -p /opt/X11/include
sudo ln -s /usr/local/include/freetype2 /opt/X11/include/freetype2
- name: Build X86_64
run: |
PATH='/usr/local/opt/bison/bin:'$PATH
./compile_macos_clang.sh || true # Will fail to install
if [ ! -f release/src/ngspice ]; then false; fi
- name: Install X86_64
run: |
cd release
sudo make install
cd ..
mkdir build
for i in bin lib share ; do
mkdir -p build/$i
cp -r /usr/local/$i/ngspice build/$i/
done
echo Create README.ngspice
echo 'This binary package of ngspice was built at https://github.com/gatk555/ngspice.' > build/README.ngspice
echo 'The source code came from the pre-master-45 branch.' > build/README.ngspice
echo 'Install to /usr/local.' > build/README.ngspice
- name: Save X86_64
uses: actions/upload-artifact@v4
with:
name: Ngspice pre-master-45, Macos X86_64
path: build
- name: Clean
run: |
rm -rf release build
for i in bin lib share ; do
sudo rm -rf /usr/local/$i/ngspice
done
build-win-X64:
runs-on: windows-latest
steps:
- name: Flex and Bison
run: |
md ..\flex-bison
cd ..\flex-bison
curl.exe -L -O "https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip"
unzip win_flex_bison-2.5.25
- uses: actions/checkout@v4
with:
repository: gatk555/ngspice
ref: gh_pm45
- uses: microsoft/setup-msbuild@v2
- name: Build
shell: cmd
run: |
set config=Release
set plat=x64
set suffix=64
set opt=-property:Configuration=%config% -property:Platform=%plat%
msbuild %opt% visualc\xspice\cmpp\cmpp.vcxproj
msbuild %opt% visualc\xspice\cmpp\cmpp.vcxproj
msbuild %opt% visualc\xspice\analog.vcxproj
msbuild %opt% visualc\xspice\digital.vcxproj
msbuild %opt% visualc\xspice\spice2poly.vcxproj
msbuild %opt% visualc\xspice\table.vcxproj
msbuild %opt% visualc\xspice\xtradev.vcxproj
msbuild %opt% visualc\xspice\xtraevt.vcxproj
set cms=codemodels\%plat%\%config%
md visualc\%cms%
move visualc\xspice\%cms%\*.cm visualc\%cms%
msbuild %opt% visualc\KLU/KLU_COMPLEX.vcxproj
msbuild %opt% visualc\vngspice.vcxproj
msbuild %opt% visualc\sharedspice.vcxproj
set config=console_release
set opt=-property:Configuration=%config% -property:Platform=%plat%
msbuild %opt% visualc\vngspice.vcxproj
copy visualc\vngspice\Release.x64\ngspice.exe C:\Spice64\bin\gui.exe
md c:\Spice64\bin-dll
copy visualc\sharedspice\Release.x64\ngspice.dll c:\Spice64\bin-dll
copy visualc\sharedspice\Release.x64\ngspice.exp c:\Spice64\bin-dll
copy visualc\sharedspice\Release.x64\ngspice.lib c:\Spice64\bin-dll
c:
cd \Spice64
move bin\ngspice.exe bin\ngspice_con.exe
move bin\gui.exe bin\ngspice.exe
echo Create README.ngspice
echo This binary build of ngspice was built at https://github.com/gatk555/ngspice. > README.ngspice
echo The source code came from the pre-master-45 branch. >> README.ngspice
echo Install to C:\Spice64\. >> README.ngspice
- uses: actions/checkout@v4
with:
repository: gatk555/test
- name: Add DLL
shell: cmd
run: |
unzip libomp.zip
copy libomp140.x86_64.dll C:\Spice64\bin\vcomp140.dll
unzip windows_osdi.zip
copy *.osdi C:\Spice64\lib\ngspice
- name: Save
uses: actions/upload-artifact@v4
with:
name: Ngspice pre-master-45, Windows X86-64
path: C:\Spice64
build-win_msys:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ucrt64
update: true
install: >
base-devel
mingw-w64-ucrt-x86_64-toolchain
autotools
- name: Flex and Bison
shell: cmd
run: |
md ..\flex-bison
cd ..\flex-bison
curl.exe -L -O "https://github.com/lexxmark/winflexbison/releases/download/v2.5.25/win_flex_bison-2.5.25.zip"
unzip win_flex_bison-2.5.25
- uses: actions/checkout@v4
with:
repository: gatk555/ngspice
ref: gh_pm45
- name: Build
run: |
./compile_min.sh
echo Create README.ngspice
echo This binary build of ngspice was built at https://github.com/gatk555/ngspice. > C:\Spice64\README.ngspice
echo The source code came from the pre-master-45 branch. >> C:\Spice64\README.ngspice
echo Install to C:\Spice64\. >> C:\Spice64\README.ngspice
- uses: actions/checkout@v4
with:
repository: gatk555/test
- name: Add DLL
shell: cmd
run: |
unzip libomp.zip
copy libomp140.x86_64.dll C:\Spice64\bin\vcomp140.dll
- name: Save
uses: actions/upload-artifact@v4
with:
name: Ngspice pre-master-45, Windows 64-bit with MSYS and UCRT64
path: C:\Spice64