Skip to content

Commit

Permalink
Merge branch 'ci'
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Oct 13, 2024
2 parents fb8a7f8 + 2dbd75d commit 9304a6a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on: [ push, pull_request ]

jobs:
dist:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
./bootstrap.sh
./configure
- name: Make source package
run: make VERSION=${{ github.sha }} dist
- name: Upload source package artifact
uses: actions/upload-artifact@v3
with:
name: xpar-${{ github.sha }}
path: xpar-${{ github.sha }}.tar.gz
- name: Run distcheck
run: make distcheck

build:
name: Compile (clang/gcc, x86_64)
needs: [ dist ]
strategy:
fail-fast: false
matrix:
compiler: [ clang, gcc ]
feature: [ enable-x86_64, disable-x86_64 ]
runs-on: ubuntu-latest
steps:
- name: Download source package artifact
uses: actions/download-artifact@v3
with:
name: xpar-${{ github.sha }}
- name: Extract source package
run: tar --strip-components=1 -xf xpar-${{ github.sha}}.tar.gz
- name: Configure
run: ./configure CC=${{ matrix.compiler }} --${{ matrix.feature }}
- name: Make
run: make
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EXTRA_DIST = COPYING README.md AUTHORS
bin_PROGRAMS = xpar
noinst_HEADERS = platform.h crc32c.h jmode.h smode.h common.h
xpar_SOURCES = platform.c xpar.c crc32c.c jmode.c smode.c
if XPAR_X86_64
xpar_SOURCES += crc32c-x86_64.S
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ m4_define([xpar_version_major], [0])
m4_define([xpar_version_minor], [1])
m4_define([xpar_version], [xpar_version_major.xpar_version_minor])

AC_PREREQ([2.72])
AC_PREREQ([2.69])
AC_INIT([xpar],[xpar_version],[https://github.com/kspalaiologos/xpar])
AC_CONFIG_HEADERS([config.h])
AC_COPYRIGHT([Copyright (C) 2022-2024 Kamila Szewczyk])
Expand Down

0 comments on commit 9304a6a

Please sign in to comment.