forked from fricas/fricas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
24,759 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: FriCAS CI on x64 Linux (with Julia support - Clozure CL based) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
env: | ||
JULIA_VERSION: '1.11.2' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libgmp-dev libxpm-dev python3 python3-sphinx | ||
- name: download roswell | ||
run: wget -c https://github.com/roswell/roswell/releases/download/v22.12.14.113/roswell_22.12.14.113-1_amd64.deb | ||
- name: install roswell and dependencies | ||
run: sudo dpkg -i roswell_22.12.14.113-1_amd64.deb && ros install ccl-bin && ros install hunchentoot && ros install queues | ||
- name: Download and install Julia | ||
run: | | ||
wget https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | ||
tar zxf julia-${JULIA_VERSION}-linux-x86_64.tar.gz | ||
sudo cp -rf julia-${JULIA_VERSION}/* /usr/local/ | ||
sudo ldconfig | ||
- name: install Julia libraries | ||
run: | | ||
julia -e "import Pkg;Pkg.add(\"Nemo\");Pkg.add(\"Suppressor\");Pkg.add(\"SpecialFunctions\")" | ||
- name: configure | ||
run: | | ||
./configure --with-lisp='ros run' --enable-gmp --enable-julia --enable-hunchentoot || cat config.log | ||
- name: make | ||
run: make -j4 --output-sync | ||
- name: make html doc | ||
run: make -j4 --output-sync htmldoc | ||
- name: make check | ||
run: make -j4 check | ||
- name: Create artifact archives | ||
run: | | ||
rm -r target/*/src | ||
mkdir jlfricas && mv target jlfricas/ | ||
tar -cjf jlFriCAS-linux-x86_64-${{ github.sha }}.tar.bz2 jlfricas/ | ||
- name: Upload Linux binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jlFriCAS-linux-x86_64-binary | ||
path: jlFriCAS-linux-x86_64-${{ github.sha }}.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: FriCAS CI on x64 Linux (with Julia support - SBCL based) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@latest | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential debhelper sbcl libgmp-dev libxpm-dev cl-hunchentoot python3 python3-sphinx fakeroot dpkg-dev | ||
wget https://github.com/gvanuxem/aldor/releases/download/20241216/aldor_1.4.0+20241216_amd64.deb | ||
sudo dpkg -i aldor_1.4.0+20241216_amd64.deb | ||
# - name: Download and install Julia | ||
# run: | | ||
# wget https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | ||
# tar zxf julia-${JULIA_VERSION}-linux-x86_64.tar.gz | ||
# sudo cp -rf julia-${JULIA_VERSION}/* /usr/local/ | ||
# sudo ldconfig | ||
- name: install Julia libraries | ||
run: | | ||
julia -e "import Pkg;Pkg.add(\"Nemo\");Pkg.add(\"Suppressor\");Pkg.add(\"SpecialFunctions\")" | ||
- name: make and check packages | ||
run: | | ||
dpkg-buildpackage -b -us -uc | ||
mv ../jlfricas_1.3.12-julia-20241216_amd64.deb . | ||
- name: Create artifact archives | ||
run: | | ||
rm -r target/*/src | ||
mkdir jlfricas && mv target jlfricas/ | ||
tar -cjf jlFriCAS-linux-x86_64-${{ github.sha }}.tar.bz2 jlfricas/ | ||
- name: Upload Linux binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jlFriCAS-linux-x86_64-binary | ||
path: | | ||
jlFriCAS-linux-x86_64-${{ github.sha }}.tar.bz2 | ||
jlfricas_1.3.12-julia-20241216_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: FriCAS CI on macOS (with Julia support - SBCL based) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-13, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
env: | ||
SBCL_VER: ${{ matrix.os == 'macos-13' && '2.2.9' || '2.4.0' }} | ||
ARCH: ${{ matrix.os == 'macos-13' && 'x86-64' || 'arm64' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@latest | ||
- name: download and install prerequities | ||
run: | | ||
wget https://downloads.sourceforge.net/project/sbcl/sbcl/${SBCL_VER}/sbcl-${SBCL_VER}-${ARCH}-darwin-binary.tar.bz2 | ||
tar xvf sbcl-${SBCL_VER}-${ARCH}-darwin-binary.tar.bz2 | ||
cd sbcl-${SBCL_VER}-${ARCH}-darwin && sudo ./install.sh | ||
- name: install Julia libraries | ||
run: | | ||
julia -e "import Pkg;Pkg.add(\"Nemo\");Pkg.add(\"Suppressor\");Pkg.add(\"SpecialFunctions\")" | ||
- name: configure | ||
run: | | ||
mkdir ../build && cd ../build | ||
../jlfricas/configure --with-lisp=sbcl --with-gmp=`brew --prefix` --enable-julia --enable-mathlink || cat config.log | ||
- name: make | ||
run: cd ../build && make -j4 | ||
|
||
- name: make check | ||
run: cd ../build && make check -j4 | ||
|
||
- name: Create artifact archives | ||
run: | | ||
cd ../build | ||
test "$GITHUB_REF_TYPE" != "tag" && rm -r target/*/src | ||
make dist-macos | ||
cp -v `brew list gmp | grep libgmp.10.dylib` FriCAS.app/Contents/Resources/usr/local/lib/fricas/target/*/lib/ | ||
## reduce chance of error caused by "hdiutil: Resource busy" | ||
make dist-macos-dmg || make dist-macos-dmg | ||
mv FriCAS.dmg ../jlfricas/FriCAS-macOS-${ARCH}-${{ github.sha }}.dmg | ||
- name: Upload macOS binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: FriCAS-macOS-${{ env.ARCH }}-binary | ||
path: FriCAS-macOS-${{ env.ARCH }}-${{ github.sha }}.dmg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.