Skip to content

Commit

Permalink
Slim down CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 authored Jun 6, 2023
1 parent c0fc3c7 commit 7f89a74
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 67 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/options.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f89a74

Please sign in to comment.