Skip to content

Commit

Permalink
Merge branch 'main' into asiegel/funk-speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
asiegel-jt committed Dec 31, 2024
2 parents 25add3e + 70b6d86 commit 71ba05b
Show file tree
Hide file tree
Showing 33 changed files with 350 additions and 92 deletions.
50 changes: 48 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

name: Builds
on:
schedule:
- cron: 0 4 * * *
workflow_call:
inputs:
gcc:
Expand All @@ -18,6 +16,18 @@ on:
type: string
description: Machines to build for
default: all
gcc_exceptions:
type: string
description: Exception groups for gcc
default: none
clang_exceptions:
type: string
description: Exception groups for clang
default: none
dry_run:
type: boolean
description: Print build matrix and exit
default: false
verbose:
type: boolean
description: Show error outputs
Expand All @@ -40,6 +50,18 @@ on:
type: string
description: Machines to build for (comma-separated | all)
default: all
gcc_exceptions:
type: string
description: Exception groups for gcc (comma-separated and semi-colon delimited | none)
default: none
clang_exceptions:
type: string
description: Exception groups for clang (comma-separated and semi-colon delimited | none)
default: none
dry_run:
type: boolean
description: Print build matrix and exit
default: false
verbose:
type: boolean
description: Show error outputs
Expand All @@ -65,6 +87,10 @@ jobs:
- name: Build command line args
run: |
ARGS=""
# dry-run
if [ "${{ inputs.dry_run }}" == "true" ]; then
ARGS="$ARGS --dry-run"
fi
# verbose
if [ "${{ inputs.verbose }}" == "true" ]; then
ARGS="$ARGS --verbose"
Expand All @@ -81,6 +107,14 @@ jobs:
if [ ! -z "${{ inputs.gcc }}" ] && [ "${{ inputs.gcc }}" != "all" ]; then
ARGS="$ARGS --gcc-versions ${{ inputs.gcc }}"
fi
# exceptions
if [ ! -z "${{ inputs.gcc_exceptions }}" ] && [ "${{ inputs.gcc_exceptions }}" != "none" ]; then
no_spaces=$(tr -d '[:space:]' <<< "${{ inputs.gcc_exceptions }}")
IFS=';' read -r -a exceptions <<< "$no_spaces"
for exception in ${exceptions[@]}; do
ARGS="$ARGS --gcc-except $exception"
done
fi
echo "BUILD_ARGS=$ARGS" >> $GITHUB_ENV
- name: Run gcc builds
Expand All @@ -100,6 +134,10 @@ jobs:
- name: Build command line args
run: |
ARGS=""
# dry-run
if [ "${{ inputs.dry_run }}" == "true" ]; then
ARGS="$ARGS --dry-run"
fi
# verbose
if [ "${{ inputs.verbose }}" == "true" ]; then
ARGS="$ARGS --verbose"
Expand All @@ -116,6 +154,14 @@ jobs:
if [ ! -z "${{ inputs.clang }}" ] && [ "${{ inputs.clang }}" != "all" ]; then
ARGS="$ARGS --clang-versions ${{ inputs.clang }}"
fi
# exceptions
if [ ! -z "${{ inputs.clang_exceptions }}" ] && [ "${{ inputs.clang_exceptions }}" != "none" ]; then
no_spaces=$(tr -d '[:space:]' <<< "${{ inputs.clang_exceptions }}")
IFS=';' read -r -a exceptions <<< "$no_spaces"
for exception in ${exceptions[@]}; do
ARGS="$ARGS --clang-except $exception"
done
fi
echo "BUILD_ARGS=$ARGS" >> $GITHUB_ENV
- name: Run clang builds
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/on_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,28 @@ on:
workflow_dispatch:
schedule:
- cron: 30 11 * * *
- cron: 0 3 * * *
jobs:
tests:
uses: ./.github/workflows/coverage_report_clusterfuzz.yml
secrets: inherit
if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '30 11 * * *' }}
coverage-report:
uses: ./.github/workflows/coverage_report.yml
secrets: inherit
if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '30 11 * * *' }}
codeql:
uses: ./.github/workflows/codeql.yml
permissions:
security-events: write
if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '30 11 * * *' }}
builds:
uses: ./.github/workflows/builds.yml
with:
# compiler,machine,target
gcc_exceptions: |
ALL,linux_gcc_power9,ALL;
ALL,linux_gcc_arm_n1,ALL;
gcc-10.5.0,linux_gcc_zen4,ALL;
gcc-11.4.0,linux_gcc_zen4,ALL
if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 3 * * *' }}
Loading

0 comments on commit 71ba05b

Please sign in to comment.