forked from fricas/fricas
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 2.01 KB
/
windowsJulia_sbcl.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
name: FriCAS CI on x64 Windows (with Julia support - SBCL based)
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
timeout-minutes: 30
env:
SBCL_VER: 2.4.9
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
install: make mingw-w64-x86_64-gcc mingw-w64-x86_64-gmp gmp-devel unzip zip
- name: download and install SBCL
run: |
wget https://downloads.sourceforge.net/project/sbcl/sbcl/${SBCL_VER}/sbcl-${SBCL_VER}-x86-64-windows-binary.msi
msiexec -i sbcl-${SBCL_VER}-x86-64-windows-binary.msi -passive
- name: download and install Julia
run: |
wget https://julialang-s3.julialang.org/bin/winnt/x64/1.11/julia-1.11.2-win64.zip
unzip julia-1.11.2-win64.zip
cp -rf julia-1.11.2/* /usr/local/
- name: install Julia libraries
run: julia -e "import Pkg;Pkg.add(\"Nemo\");Pkg.add(\"Suppressor\");Pkg.add(\"SpecialFunctions\")"
- uses: actions/checkout@v4
- name: configure and make
run: |
cp -R "/c/Program Files/Steel Bank Common Lisp" /usr/local/share/sbcl
export SBCL_HOME=/usr/local/share/sbcl
export PATH=$SBCL_HOME:$PATH
mkdir ../build && cd ../build
../jlfricas/configure --enable-gmp --enable-julia --enable-mathlink || cat config.log
make -j2 --output-sync
- name: make check
run: cd ../build && make check -j2 --output-sync
- name: Create artifact archives
run: |
test "$GITHUB_REF_TYPE" != "tag" && rm -r ../build/target/*/src
rm ../build/target/x86_64-w64-mingw32/bin/fricas
mv ../build/target/x86_64-w64-mingw32 jlFriCAS-windows-x86_64
cp /mingw64/bin/libgmp-10.dll jlFriCAS-windows-x86_64/lib/
zip -r jlFriCAS-windows-x86_64-${{ github.sha }}.zip jlFriCAS-windows-x86_64
- name: Upload Windows binary
uses: actions/upload-artifact@v4
with:
name: jlFriCAS-windows-x86_64-binary
path: jlFriCAS-windows-x86_64-${{ github.sha }}.zip