Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! ci: enable tsan workflow again
Browse files Browse the repository at this point in the history
remove retention, always build packages
  • Loading branch information
MariusBgm committed Sep 18, 2024
1 parent b6d3e58 commit c945875
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 89 deletions.
30 changes: 4 additions & 26 deletions .github/actions/build-cmake-preset/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ inputs:
cmake-args:
description: "Additional CMake arguments"
required: false
do-package-symbols:
description: "In Debug builds, split symbols and provide a zip package"
required: false
type: boolean
do-package:
description: "Run `cmake --target package` and upload artifact"
required: false
type: boolean
retention-days:
description: "How long we keep the artifacts"
required: false
type: number
default: 14
run-tests:
description: "Run tests"
required: false
Expand Down Expand Up @@ -62,6 +49,8 @@ outputs:
value: "${{ steps.cmake-package.outputs.symbols-package-name }}"

runs:
env:
- RETENTION_DAYS: 2
using: composite
steps:

Expand Down Expand Up @@ -112,10 +101,9 @@ runs:
with:
name: "${{ inputs.testlog-name }}-test-results"
path: '_build/**/*gtestresults.xml'
retention-days: ${{ inputs.retention-days }}
retention-days: ${{ env.RETENTION_DAYS }}

- name: create cmake package for ${{ inputs.preset-name }}
if: ${{ inputs.do-package == 'true' }}
id: cmake-package
run: |
cmake --build --preset ${{ inputs.preset-name }} --target package
Expand All @@ -127,19 +115,9 @@ runs:
shell: bash

- name: upload package ${{ inputs.preset-name }}
if: ${{ inputs.do-package == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.cmake-package.outputs.package-name }}
path: ${{ steps.cmake-package.outputs.package-path }}
if-no-files-found: 'error'
retention-days: ${{ inputs.retention-days }}

- name: upload symbols package ${{ inputs.preset-name }}
if: ${{ inputs.do-package-symbols == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.cmake-package.outputs.symbols-package-name }}
path: ${{ steps.cmake-package.outputs.symbols-package-path}}
if-no-files-found: 'error'
retention-days: ${{ inputs.retention-days }}
retention-days: ${{ env.RETENTION_DAYS }}
14 changes: 0 additions & 14 deletions .github/workflows/build-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ name: 'Linux Release Builds For ARM64'
on:
workflow_call:
inputs:
do_package:
required: false
type: boolean
default: false
do_package_symbols:
required: false
type: boolean
default: false
retention_days:
required: false
type: number
default: 14
run_build:
required: true
type: boolean
Expand All @@ -38,8 +26,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: linux-release
do-package: ${{ inputs.do_package }}
retention-days: ${{ inputs.retention_days }}
cmake-args: "-DCMAKE_C_COMPILER=${{ matrix.toolchain.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.toolchain.cxx }}"
testlog-name: ${{ github.job }}
14 changes: 0 additions & 14 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ name: 'Linux Release Builds'
on:
workflow_call:
inputs:
do_package:
required: false
type: boolean
default: false
do_package_symbols:
required: false
type: boolean
default: false
retention_days:
required: false
type: number
default: 14
run_build:
required: true
type: boolean
Expand All @@ -40,8 +28,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: linux-release
do-package: ${{ inputs.do_package }}
retention-days: ${{ inputs.retention_days }}
cmake-args: "-DCMAKE_C_COMPILER=${{ matrix.toolchain.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.toolchain.cxx }}"
testlog-name: "${{ github.job }}-${{ matrix.toolchain.cc }}"
16 changes: 0 additions & 16 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@ name: macOS build

on:
workflow_call:
inputs:
do_package:
required: false
type: boolean
default: false
do_package_symbols:
required: false
type: boolean
default: false
retention_days:
required: false
type: number
default: 14

jobs:
build-macos:
Expand All @@ -29,7 +16,4 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: clang-release
do_package: ${{ inputs.do_package }}
do_package_symbols: ${{ inputs.do_package_symbols }}
retention_days: ${{ inputs.retention_days }}
testlog-name: ${{ github.job }}
8 changes: 0 additions & 8 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
required: false
type: boolean
default: false
retention_days:
required: false
type: number
default: 14
run_build:
required: true
type: boolean
Expand All @@ -39,8 +35,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: vs141-x64-release
do-package: ${{ inputs.do_package }}
retention-days: ${{ inputs.retention_days }}
build-arch: x64
testlog-name: ${{ github.job }}

Expand All @@ -56,7 +50,5 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: vs141-x86-release
do-package: ${{ inputs.do_package }}
retention-days: ${{ inputs.retention_days }}
build-arch: x86
testlog-name: ${{ github.job }}
1 change: 0 additions & 1 deletion .github/workflows/linux-asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: clang-relwithdebinfo
do-package: false
cmake-args: "-D SILKIT_ENABLE_ASAN=ON -D SILKIT_BUILD_DASHBOARD=OFF \
-DCMAKE_C_COMPILER=clang-18 \
-DCMAKE_CXX_COMPILER=clang++-18"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/linux-tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: clang-relwithdebinfo
do-package: false
cmake-args: "-D SILKIT_ENABLE_THREADSAN=ON -D SILKIT_BUILD_DASHBOARD=OFF \
-DCMAKE_C_COMPILER=clang-18 \
-DCMAKE_CXX_COMPILER=clang++-18"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/linux-ubsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: clang-relwithdebinfo
do-package: false
cmake-args: "-D SILKIT_ENABLE_UBSAN=ON -D SILKIT_BUILD_DASHBOARD=OFF \
-DCMAKE_C_COMPILER=clang-18 \
-DCMAKE_CXX_COMPILER=clang++-18"
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/sil-kit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,30 +87,22 @@ jobs:
uses: ./.github/workflows/build-linux.yml
needs: [check-licenses, check-run-builds, check-formatting]
with:
do_package: ${{ github.event_name == 'push' && true || false }}
retention_days: ${{ github.event_name == 'push' && 90 || 14 }}
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}

ubuntu-arm-release-builds:
uses: ./.github/workflows/build-linux-arm64.yml
needs: [check-licenses, check-run-builds, check-formatting]
with:
do_package: ${{ github.event_name == 'push' && true || false }}
retention_days: ${{ github.event_name == 'push' && 90 || 14 }}
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}

windows-release-builds:
uses: ./.github/workflows/build-win.yml
needs: [check-licenses, check-run-builds, check-formatting]
with:
do_package: ${{ github.event_name == 'push' && true || false }}
retention_days: ${{ github.event_name == 'push' && 90 || 14 }}
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}

mingw-release-builds:
uses: ./.github/workflows/build-mingw64.yml
needs: [check-licenses, check-run-builds, check-formatting]
with:
do_package: ${{ github.event_name == 'push' && true || false }}
retention_days: ${{ github.event_name == 'push' && 90 || 14 }}
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}

0 comments on commit c945875

Please sign in to comment.