Slim down CI
This commit is contained in:
parent
c0fc3c73e2
commit
7f89a74cb2
67
.github/workflows/action.yml
vendored
67
.github/workflows/action.yml
vendored
@ -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
50
.github/workflows/options.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user