Skip to content

Commit

Permalink
v0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Oct 14, 2024
1 parent c972c6f commit 043943d
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Release

on:
push:
tags:
- '*.*'

jobs:
ghrelease:
name: Publish sources on GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure
run: |
./bootstrap && ./configure
sudo apt install bzip3 -y
- name: Build source packages
run: |
make dist-gzip
make dist-zip
gzip -dk xpar-${{ github.ref_name }}.tar.gz
bzip3 xpar-${{ github.ref_name }}.tar
bzip2 -k xpar-${{ github.ref_name }}.tar
zstd -k xpar-${{ github.ref_name }}.tar
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
files: |
xpar-${{ github.ref_name }}.tar
xpar-${{ github.ref_name }}.tar.bz2
xpar-${{ github.ref_name }}.tar.bz3
xpar-${{ github.ref_name }}.tar.gz
xpar-${{ github.ref_name }}.tar.zst
xpar-${{ github.ref_name }}.zip
- name: Upload source package artifact
uses: actions/upload-artifact@v3
with:
name: xpar-${{ github.ref_name }}
path: xpar-${{ github.ref_name }}.tar.gz
binaries:
name: Publish Binaries on GitHub Release
needs: [ ghrelease ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- [ "x86_64-linux", "--enable-static --enable-lto", "" ]
- [ "x86_64", "CC=x86_64-w64-mingw32-gcc --host x86_64-w64-mingw32 --enable-static --enable-lto", "gcc-mingw-w64-x86-64" ]
- [ "i686", "CC=i686-w64-mingw32-gcc --host i686-w64-mingw32 --enable-static --enable-lto", "gcc-mingw-w64-i686" ]
steps:
- name: Download source package artifact
uses: actions/download-artifact@v3
with:
name: xpar-${{ github.ref_name }}
- name: Extract source package
run: tar --strip-components=1 -xf xpar-${{ github.ref_name }}.tar.gz
- name: Install cross-compile dependencies
if: ${{ matrix.target[2] }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.target[2] }}
- name: Configure
run: ./configure --bindir=/ --program-suffix=-${{ matrix.target[0] }} ${{ matrix.target[1] }}
- name: Make
run: |
make
make DESTDIR=$(pwd)/output install-exec
- name: Publish binary
uses: softprops/action-gh-release@v2
with:
files: |
output/xpar-${{ matrix.target[0] }}*
40 changes: 40 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
2024-10-14 Kamila Szewczyk <kspalaiologos@gmail.com>

CI: binaries; configure: static linking mode

CI: tentative release process preparations

move read_header_from_map into a guard block

add strndup prototype to platform.h

try switching to mingw32/mingw64

Windows support

xpar-x86_64.asm - leading underscore fix

CI: aarch64 vanilla macos target, configure: fix leading underscores

settings specific to ELF targets

configure: cleaner flag handling, set up nasm in CI runners

rewrite platform-specific assembly using nasm.

xpar-x86_64.S: .att_syntax directive

fix a lax setmode check
also verify the presence of MS-specific io.h

x86_64 MacOS CI

add a rudimentary self-check target

retain only README.md in EXTRA_DIST

update the actions runner
fix the name of the bootstrap script

fill in v0.1 notes in NEWS, add development section in README.md

Add GNU-compatible changelog.

add copyright headers to shell scripts, portable gitlog-to-changelog
/bin/sh -> /usr/bin/env sh

Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ v0.1 (pending release)
- Supports joint mode and sharded mode for error and erasure correction.
- Provides platform-specific code for x86_64, which can be enabled via
the --enable-x86_64 configure option.
- Tested on x86_64 Linux (Ubuntu), x86_64 and aarch64 MacOS and x86_64 and
i686 Windows.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ if test "x$enable_native" = "xyes"; then
AX_APPEND_COMPILE_FLAGS([-march=native -mtune=native])
fi

AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static], [Enable static linking.])], [enable_static=$enableval], [enable_static=no])
if test "x$enable_static" = "xyes"; then
AX_APPEND_LINK_FLAGS([-static])
fi

AC_ARG_ENABLE([lto], [AS_HELP_STRING([--enable-lto], [Enable link-time optimisation.])], [enable_lto=$enableval], [enable_lto=no])
if test "x$enable_lto" = "xyes"; then
AX_APPEND_COMPILE_FLAGS([-flto])
Expand Down

0 comments on commit 043943d

Please sign in to comment.