ref: 8760490d64d31ecaa73cb3e26903651cf798fa0a
parent: acb67a873fb6b8c9d1498be4811c4943fb7929de
author: Marcus Asteborg <xnorpx@outlook.com>
date: Sat Jun 17 05:10:57 EDT 2023
Autotools CI for Github actions
--- /dev/null
+++ b/.github/workflows/autotools.yml
@@ -1,0 +1,47 @@
+name: Autotools
+
+on: [push, pull_request]
+
+jobs:
+
+ AutoMakeBuild:
+ name: AutoMake/${{ matrix.config.name }}
+ runs-on: ${{ matrix.config.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ config:
+ - {
+ name: "Linux/GCC",
+ os: ubuntu-latest,
+ compiler: gcc,
+ automakeconfig:
+ }
+ - {
+ name: "Linux/GCC/EnableAssertions",
+ os: ubuntu-latest,
+ compiler: gcc,
+ buildconfig: --enable-assertions
+ }
+ - {
+ name: "Linux/GCC/EnableCustomModes",
+ os: ubuntu-latest,
+ compiler: gcc,
+ buildconfig: --enable-assertions --enable-custom-modes
+ }
+ steps:
+ - uses: actions/checkout@v3
+ - name: Pull git submodules
+ run: git submodule update --init --recursive
+ # No AutoMake on Mac so let's install it
+ - name: Install AutoConf, AutoMake and LibTool on MacOSX
+ if: matrix.config.os == 'macos-latest'
+ run: brew install autoconf automake libtool
+ - name: Autogen
+ run: CC=${{ matrix.config.compiler }} ./autogen.sh
+ - name: Configure
+ run: CFLAGS="-mavx -mfma -mavx2 -O2 -ffast-math" ./configure --enable-float-approx ${{ matrix.config.buildconfig }}
+ - name: Build
+ run: make -j 2
+ - name: Test
+ run: make check -j 2
\ No newline at end of file
--
⑨