Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Release

on:
push:
tags:
- 'v[0-9]*'

workflow_dispatch:
# Allow to run manually

env:
# Ubuntu packages to install so that the projects' "make dist" can succeed
DIST_PREREQ: libopenblas-dev libgmp-dev
# Name of this project in the Sage distribution
SPKG: fflas_ffpack

jobs:
release_dist:
runs-on: ubuntu-24.04
env:
PREFIX: /tmp/build
steps:
- name: Check out givaro
uses: actions/checkout@v4
with:
path: build/pkgs/givaro/src
repository: linbox-team/givaro
- name: Check out ${{ env.SPKG }}
uses: actions/checkout@v4
with:
path: build/pkgs/${{ env.SPKG }}/src
- name: Install prerequisites
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install $DIST_PREREQ
wget https://ftpmirror.gnu.org/libtool/libtool-2.4.7.tar.gz
tar xfz libtool-2.4.7.tar.gz
cd libtool-2.4.7
./configure --prefix=${{ env.PREFIX }}
make install
- name: Run make dist, prepare upstream artifact
run: |
export PATH="${{ env.PREFIX }}/bin:$PATH" \
&& (cd build/pkgs/givaro/src && autoreconf -fi && ./configure --prefix=${{ env.PREFIX }} && make -j5 && make install) \
&& export PKG_CONFIG_PATH="${{ env.PREFIX }}/lib/pkgconfig:$PKG_CONFIG_PATH" \
&& (cd build/pkgs/${{ env.SPKG }}/src && autoreconf -fi && ./configure --prefix=${{ env.PREFIX }} && make -j5 && make -j5 distcheck) \
&& mkdir -p upstream && cp build/pkgs/${{ env.SPKG }}/src/*.tar.gz upstream/ \
&& ls -l upstream/
- uses: actions/upload-artifact@v4
with:
path: upstream
name: upstream
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
upstream/*
if: startsWith(github.ref, 'refs/tags/')
3 changes: 3 additions & 0 deletions fflas-ffpack/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ pkginclude_HEADERS = config-blas.h \
fflas-ffpack-config.h \
fflas-ffpack-thresholds.h \
fflas-ffpack-default-thresholds.h

DISTCLEANFILES = config.h \
fflas-ffpack-thresholds.h
1 change: 1 addition & 0 deletions tests/data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ SUBDIRS =

EXTRA_DIST= mat11.sms

DISTCLEANFILES = mat.cbin mat.bin mat.dense mat.sms