aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2023-06-06 18:03:32 +0200
committerGitHub <noreply@github.com>2023-06-06 18:03:32 +0200
commit7f89a74cb240d86301b5ba017fdd4fbfaad5677e (patch)
tree8f3fc7acb7ad748e08fa5cc0d398282ba77f4ef0
parentc0fc3c73e27573d6ac5d3c1c201fa76d4928a491 (diff)
downloadflac-7f89a74cb240d86301b5ba017fdd4fbfaad5677e.tar.gz
Slim down CI
-rw-r--r--.github/workflows/action.yml67
-rw-r--r--.github/workflows/options.yml50
2 files changed, 50 insertions, 67 deletions
diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml
index 54108fa5..c8bdbff8 100644
--- a/.github/workflows/action.yml
+++ b/.github/workflows/action.yml
@@ -3,37 +3,12 @@ name: GitHub Actions
on:
push:
pull_request:
- schedule:
- - cron: '0 0 1 * *'
jobs:
build:
strategy:
matrix:
- name:
- [
- ubuntu-latest-gcc-autotools,
- ubuntu-latest-clang-autotools,
- ubuntu-latest-gcc-cmake,
- ubuntu-latest-clang-cmake,
- macos-latest-clang-autotools,
- macos-latest-clang-cmake,
- windows-latest-cmake,
- ubuntu-latest-gcc-autotools-32-bit-words,
- ubuntu-latest-clang-autotools-32-bit-words,
- ubuntu-latest-gcc-cmake-32-bit-words,
- ubuntu-latest-clang-cmake-32-bit-words,
- macos-latest-clang-autotools-32-bit-words,
- macos-latest-clang-cmake-32-bit-words
- ]
include:
- - name: ubuntu-latest-gcc-autotools
- os: ubuntu-latest
- cc: gcc
- cxx: g++
- build-system: autotools
- configure-opts: ''
-
- name: ubuntu-latest-clang-autotools
os: ubuntu-latest
cc: clang
@@ -79,48 +54,6 @@ jobs:
build-system: cmake
configure-opts: '-DBUILD_SHARED_LIBS=ON'
- - name: ubuntu-latest-gcc-autotools-32-bit-words
- os: ubuntu-latest
- cc: gcc
- cxx: g++
- build-system: autotools
- configure-opts: --disable-64-bit-words
-
- - name: ubuntu-latest-clang-autotools-32-bit-words
- os: ubuntu-latest
- cc: clang
- cxx: clang++
- build-system: autotools
- configure-opts: --disable-64-bit-words
-
- - name: ubuntu-latest-gcc-cmake-32-bit-words
- os: ubuntu-latest
- cc: gcc
- cxx: g++
- build-system: cmake
- configure-opts: -DENABLE_64_BIT_WORDS=OFF
-
- - name: ubuntu-latest-clang-cmake-32-bit-words
- os: ubuntu-latest
- cc: clang
- cxx: clang++
- build-system: cmake
- configure-opts: -DENABLE_64_BIT_WORDS=OFF
-
- - name: macos-latest-clang-autotools-32-bit-words
- os: macos-latest
- cc: clang
- cxx: clang++
- build-system: autotools
- configure-opts: --disable-64-bit-words
-
- - name: macos-latest-clang-cmake-32-bit-words
- os: macos-latest
- cc: clang
- cxx: clang++
- build-system: cmake
- configure-opts: -DENABLE_64_BIT_WORDS=OFF
-
runs-on: ${{ matrix.os }}
steps:
diff --git a/.github/workflows/options.yml b/.github/workflows/options.yml
new file mode 100644
index 00000000..d2c8673e
--- /dev/null
+++ b/.github/workflows/options.yml
@@ -0,0 +1,50 @@
+name: GitHub Actions for specific options
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ include:
+ - name: 32-bit-words
+ cppflags: ''
+ configure-opts: --disable-64-bit-words
+
+ - name: integer-only-library
+ cppflags: '-DFLAC__INTEGER_ONLY_LIBRARY'
+ configure-opts: ''
+
+ - name: no-asm
+ cppflags: ''
+ configure-opts: --disable-asm-optimizations
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libtool-bin libogg-dev
+
+ - name: Build and run tests
+ env:
+ CPPFLAGS: ${{ matrix.cppflags }}
+ run: |
+ ./autogen.sh
+ ./configure --disable-thorough-tests ${{ matrix.configure-opts }}
+ make
+ make check
+
+ - name: Upload logs on failure
+ uses: actions/upload-artifact@v2
+ if: failure()
+ with:
+ name: flac-${{ github.sha }}-${{ github.run_id }}-logs
+ path: |
+ ./**/*.log
+ ./**/out*.meta