hide fricasmath environment from HyperDoc #113
Workflow file for this run
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
name: FriCAS CI on Windows | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
timeout-minutes: 30 | |
env: | |
SBCL_VER: 2.3.2 | |
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 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 | |
- uses: actions/checkout@v4 | |
- name: configure and make | |
run: | | |
export SBCL_HOME="/c/Program Files/Steel Bank Common Lisp/" | |
export PATH="$SBCL_HOME":$PATH | |
mkdir ../build && cd ../build | |
../fricas/configure --with-lisp="sbcl --dynamic-space-size 2048" --enable-gmp || 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 FriCAS-windows-x86_64 | |
cp /mingw64/bin/libgmp-10.dll FriCAS-windows-x86_64/lib/ | |
zip -r FriCAS-windows-x86_64-${{ github.sha }}.zip FriCAS-windows-x86_64 | |
- name: Upload Windows binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: FriCAS-windows-x86_64-binary | |
path: FriCAS-windows-x86_64-${{ github.sha }}.zip | |
- name: Upload to nightly release | |
if: ${{ github.event_name == 'push' && ( github.event.ref == 'refs/heads/master' || github.ref_type == 'tag' ) && github.repository == 'fricas/fricas' }} | |
## RELEASE_ID is: | |
## `curl https://api.github.com/${REPO_URL}/tags/nightly | jq .id` | |
run: | | |
export REPO_URL=repos/fricas/fricas-nightly-builds/releases | |
export RELEASE_ID=74905307 | |
export TIMESTAMP=$(date +%Y-%m-%dT%H.%M) | |
export SHA=$(echo ${{ github.sha }} | cut -c 1-8) | |
export FILENAME=FriCAS-${TIMESTAMP}-windows-x86_64-${SHA}.zip | |
export URL=https://uploads.github.com/${REPO_URL}/${RELEASE_ID}/assets | |
curl -v -X POST -H "Accept: application/vnd.github+json" \ | |
-H "Authorization: token ${{ secrets.releasetoken }}" \ | |
"${URL}?name=${FILENAME}" \ | |
--data-binary "@FriCAS-windows-x86_64-${{ github.sha }}.zip" \ | |
-H "Content-Type: application/zip" || true |