Slim down CI

This commit is contained in:
Martijn van Beurden 2023-06-06 18:03:32 +02:00 committed by GitHub
parent c0fc3c73e2
commit 7f89a74cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 67 deletions

View File

@ -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:

50
.github/workflows/options.yml vendored Normal file
View File

@ -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