diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-10-15 03:17:51 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-10-15 09:02:39 +0300 |
commit | 87e4ea730130b6ff6861a66aa9a9c938445c894e (patch) | |
tree | 6763beb2268a1fc60bf24373ba94fd477eba0cd1 | |
parent | ced6f7a29256ddc4cae1864e2242a62db7bd5bd5 (diff) |
Drop dormant CI workflows
-rw-r--r-- | .github/workflows/dormant/macos-gcc.yml | 76 | ||||
-rw-r--r-- | .github/workflows/dormant/windows-2019.yml | 237 | ||||
-rw-r--r-- | .github/workflows/dormant/windows-msys2.yml | 90 |
3 files changed, 0 insertions, 403 deletions
diff --git a/.github/workflows/dormant/macos-gcc.yml b/.github/workflows/dormant/macos-gcc.yml deleted file mode 100644 index 8f5d061d3..000000000 --- a/.github/workflows/dormant/macos-gcc.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: macOS builds -on: push -env: - MAX_WARNINGS_GCC_9_Debug: 361 - MAX_WARNINGS_GCC_9_Release: 321 - PATH: "${GITHUB_WORKSPACE}/.github/scripts:${PATH}" - -jobs: - build_macos_gcc_brew: - name: GCC-${{ matrix.compiler_version }} (HomeBrew) - runs-on: macos-latest - strategy: - matrix: - compiler_version: [9] - steps: - - uses: actions/checkout@v1 - - name: Prepare tar-zstd for the cache - run: | - brew install zstd gnu-tar - cp .github/scripts/tar /usr/local/bin/tar - - uses: actions/cache@v1 - id: cache-brew - with: {path: /usr/local, key: brew-gcc-2019-v18} - - name: Install C++ compiler and libraries - if: steps.cache-brew.outputs.cache-hit != 'true' - run: | - ./.github/scripts/reset-brew.sh - brew install $(./scripts/list-build-dependencies.sh -m brew -c gcc -v ${{ matrix.compiler_version }}) - sudo ./.github/scripts/shrink-brew.sh - - name: Log environment - run: ./scripts/log-env.sh - - name: Release build - run: ./scripts/build.sh --compiler gcc --version-postfix ${CC_PREFIX}${{ matrix.compiler_version }} --build-type Release - - name: Release warnings - run: python3 ./scripts/count-warnings.py -m $MAX_WARNINGS_GCC_${{ matrix.compiler_version }}_Release build.log - - name: Debug build - run: ./scripts/build.sh --compiler gcc --version-postfix ${CC_PREFIX}${{ matrix.compiler_version }} --build-type Debug - - name: Debug warnings - run: python3 ./scripts/count-warnings.py -m $MAX_WARNINGS_GCC_${{ matrix.compiler_version }}_Debug build.log - - build_macos_gcc_macports: - name: GCC-${{ matrix.compiler_version }} (MacPorts) - runs-on: macos-latest - strategy: - matrix: - compiler_version: [9] - steps: - - uses: actions/checkout@v1 - - name: Prepare tar-zstd and /opt/local for the cache - run: | - brew install zstd gnu-tar - cp .github/scripts/tar /usr/local/bin/tar - sudo ./.github/scripts/prepare-for-macports-cachehit.sh - - uses: actions/cache@v1 - id: cache-macports - with: {path: /opt/local, key: macports-gcc-2019-v14} - - name: Install MacPorts, C++ compiler, and libraries - if: steps.cache-macports.outputs.cache-hit != 'true' - run: | - ./.github/scripts/download-and-build-macports.sh - sudo ./.github/scripts/install-and-update-macports.sh - sudo /opt/local/bin/port -q -f install $(./scripts/list-build-dependencies.sh -m macports -c gcc -v ${{ matrix.compiler_version }}) - - name: Log environment - run: ./scripts/log-env.sh - - name: Release build - run: ./scripts/build.sh --compiler gcc --version-postfix mp-${{ matrix.compiler_version }} --build-type Release --bin-path /opt/local/bin - - name: Release warnings - run: python3 ./scripts/count-warnings.py $MAX_WARNINGS_GCC_${{ matrix.compiler_version }}_Release build.log - - name: Debug build - run: ./scripts/build.sh --compiler gcc --version-postfix mp-${{ matrix.compiler_version }} --build-type Debug --bin-path /opt/local/bin - - name: Debug warnings - run: python3 ./scripts/count-warnings.py $MAX_WARNINGS_GCC_${{ matrix.compiler_version }}_Debug build.log - - - name: Shrink MacPorts for cache - if: steps.cache-macports.outputs.cache-hit != 'true' - run: sudo ./.github/scripts/shrink-macports.sh diff --git a/.github/workflows/dormant/windows-2019.yml b/.github/workflows/dormant/windows-2019.yml deleted file mode 100644 index 48ebb23de..000000000 --- a/.github/workflows/dormant/windows-2019.yml +++ /dev/null @@ -1,237 +0,0 @@ -name: Windows builds - -on: [push, pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build_windows_vs: - name: ${{ matrix.conf.name }} - runs-on: windows-latest - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository - strategy: - matrix: - conf: - - name: MSVC 32-bit - arch: x86 - max_warnings: 0 - - name: MSVC 64-bit - arch: x64 - max_warnings: 1125 - steps: - - name: Backup existing vcpkg installation - shell: pwsh - run: | - mv c:\vcpkg c:\vcpkg-bak - md c:\vcpkg -ea 0 - - - name: Generate vcpkg cache key - id: prep-vcpkg - shell: bash - run: | - echo "::set-output name=year_and_week::$(date '+%Y%W')" - - - name: Cache vcpkg - uses: actions/cache@v2 - id: cache-vcpkg - with: - path: c:\vcpkg - key: vcpkg-${{ matrix.conf.arch }}-${{ steps.prep-vcpkg.outputs.year_and_week }}-2 - - - name: Install new packages using vcpkg - if: steps.cache-vcpkg.outputs.cache-hit != 'true' - shell: pwsh - run: | - rm -R c:\vcpkg - mv c:\vcpkg-bak c:\vcpkg - vcpkg install --triplet ${{ matrix.conf.arch }}-windows libpng sdl2 sdl2-net libmt32emu opusfile fluidsynth pdcurses gtest speexdsp - if (-not $?) { throw "vcpkg failed to install library dependencies" } - rm -R c:\vcpkg\buildtrees - rm -R c:\vcpkg\packages - - - name: Integrate packages - shell: pwsh - run: | - vcpkg integrate install - if (-not $?) { throw "vcpkg failed to integrate packages" } - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Log environment - shell: pwsh - run: .\scripts\log-env.ps1 - - - name: Run tests - shell: pwsh - env: - PATH: '${env:PATH};C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64' - run: | - cd vs - # TODO: get unit tests working in Debug-mode; for now use release flags (better than nothing) - MSBuild -m dosbox.sln -t:tests:Rebuild -p:Configuration=Release -p:Platform=${{ matrix.conf.arch }} - - - name: Build - shell: pwsh - env: - PATH: '${env:PATH};C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64' - run: | - cd vs - MSBuild -m dosbox.sln -t:dosbox:Rebuild -p:Configuration=Debug -p:Platform=${{ matrix.conf.arch }} | Tee-Object build.log - - - name: Summarize warnings - shell: pwsh - env: - MAX_WARNINGS: ${{ matrix.conf.max_warnings }} - run: python scripts\count-warnings.py -f --msvc vs\build.log - - - build_windows_vs_release: - name: ${{ matrix.conf.name }} - needs: build_windows_vs - runs-on: windows-latest - strategy: - matrix: - conf: - - name: Release build (32-bit) - arch: x86 - vs-release-dirname: Win32 - - name: Release build (64-bit) - arch: x64 - vs-release-dirname: x64 - - steps: - - - name: Prepare vcpkg for cache restore - shell: pwsh - run: | - mv c:\vcpkg c:\vcpkg-bak - md c:\vcpkg -ea 0 - - - name: Generate vcpkg cache key - id: prep-vcpkg - shell: bash - run: | - echo "::set-output name=year_and_week::$(date '+%Y%W')" - - - name: Restore the most recent cache of vcpkg - uses: actions/cache@v2 - with: - path: c:\vcpkg - key: vcpkg-${{ matrix.conf.arch }}-${{ steps.prep-vcpkg.outputs.year_and_week }}-2 - - - name: Integrate packages - shell: pwsh - run: | - vcpkg integrate install - if (-not $?) { throw "vcpkg failed to integrate packages" } - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Log environment - shell: pwsh - run: .\scripts\log-env.ps1 - - - name: Adjust config.h - shell: bash - run: | - set -x - git fetch --prune --unshallow - export VERSION=$(git describe --abbrev=4) - # inject version based on vcs - sed -i "s|DOSBOX_DETAILED_VERSION \"git\"|DOSBOX_DETAILED_VERSION \"$VERSION\"|" src/platform/visualc/config.h - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Build release - shell: pwsh - env: - PATH: '${env:PATH};C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64' - run: | - cd vs - MSBuild -m dosbox.sln -t:dosbox:Rebuild -p:Configuration=Release -p:Platform=${{ matrix.conf.arch }} - - - name: Package - shell: bash - env: - # This should probably be in the matrix somewhere - VC_REDIST_DIR: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Redist/MSVC/14.29.30133/${{ matrix.conf.arch }}/Microsoft.VC142.CRT - run: | - ./scripts/create-package.sh \ - -p msvc \ - vs/${{ matrix.conf.vs-release-dirname }}/Release \ - "dest" - - - name: Enable the debugger in config.h - shell: bash - run: | - set -x - sed -i "s|C_DEBUG.*|C_DEBUG 1|" src/platform/visualc/config.h - sed -i "s|C_HEAVY_DEBUG.*|C_HEAVY_DEBUG 1|" src/platform/visualc/config.h - - - name: Build release with the debugger - shell: pwsh - env: - PATH: '${env:PATH};C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64' - run: | - cd vs - MSBuild -m dosbox.sln -t:dosbox:"Clean;Rebuild" -p:Configuration=Release -p:Platform=${{ matrix.conf.arch }} - - - name: Package the debugger - shell: bash - run: | - set -x - # Move the debugger build into the release area - readonly RELEASE_DIR=${{ matrix.conf.vs-release-dirname }}/Release - ls "vs/$RELEASE_DIR" - cp vs/$RELEASE_DIR/dosbox.exe dest/dosbox_with_debugger.exe - cp vs/$RELEASE_DIR/pdcurses.dll dest/ - # Create dir for zipping - mv dest dosbox-staging-windows-${{ matrix.conf.arch }}-${{ env.VERSION }} - - - name: Windows Defender AV Scan - shell: powershell - run: | - $ErrorActionPreference = 'Stop' - $dosboxDir = "${{ github.workspace }}\dosbox-staging-windows-${{ matrix.conf.arch }}-${{ env.VERSION }}" - & 'C:\Program Files\Windows Defender\MpCmdRun.exe' -Scan -ScanType 3 -DisableRemediation -File $dosboxDir - if( $LASTEXITCODE -ne 0 ) { - Get-Content -Path $env:TEMP\MpCmdRun.log - Throw "Exit $LASTEXITCODE : Windows Defender found an issue" - } - - - name: Upload package - uses: actions/upload-artifact@v2 - with: - name: dosbox-staging-windows-${{ matrix.conf.arch }}-${{ env.VERSION }} - path: dosbox-staging-windows-${{ matrix.conf.arch }}-${{ env.VERSION }} - - - # This job exists only to publish an artifact with version info when building - # from main branch, so snapshot build version will be visible on: - # https://dosbox-staging.github.io/downloads/devel/ - # - publish_additional_artifacts: - name: Publish additional artifacts - needs: build_windows_vs_release - runs-on: windows-latest - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v3 - - name: Generate changelog - shell: bash - run: | - set +x - git fetch --unshallow - VERSION=$(git describe --abbrev=4) - echo "VERSION=$VERSION" >> $GITHUB_ENV - NEWEST_TAG=$(git describe --abbrev=0) - git log "$NEWEST_TAG..HEAD" > changelog-$VERSION.txt - - uses: actions/upload-artifact@v2 - with: - # Keep exactly this artifact name; it's being used to propagate - # version info via GitHub REST API - name: changelog-${{ env.VERSION }}.txt - path: changelog-${{ env.VERSION }}.txt diff --git a/.github/workflows/dormant/windows-msys2.yml b/.github/workflows/dormant/windows-msys2.yml deleted file mode 100644 index 5fc7f35a3..000000000 --- a/.github/workflows/dormant/windows-msys2.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: Windows builds - -on: [push, pull_request] - -jobs: - build_windows_msys2: - name: ${{ matrix.conf.compiler }} ${{ matrix.conf.bits }}-bit - runs-on: windows-latest - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository - strategy: - # Because Clang depends on GCC, we run the Clang-32/64bit jobs - # first to create combined caches that include both Clang and GCC. - # Running 2-jobs at once ensure the GCC jobs start after Clang. - max-parallel: 2 - matrix: - conf: - - compiler: Clang - bits: 32 - arch: i686 - max_warnings: 9 - - compiler: Clang - bits: 64 - arch: x86_64 - max_warnings: 41 - - compiler: GCC - bits: 32 - arch: i686 - max_warnings: 26 - - compiler: GCC - bits: 64 - arch: x86_64 - max_warnings: 58 - env: - CHERE_INVOKING: yes - CCACHE_DIR: "${{ github.workspace }}/.ccache" - CCACHE_MAXSIZE: "64M" - CCACHE_COMPRESS: "true" - steps: - - uses: actions/checkout@v3 - - name: Get Date - id: get-date - shell: bash - run: echo "::set-output name=date::$(date +%Y-%W)" - - uses: actions/cache@v1 - id: cache-msys2 - with: - path: 'C:/tools/msys64' - key: msys2-${{ matrix.conf.bits }}-${{ steps.get-date.outputs.date }} - - name: Install MSYS2 - if: steps.cache-msys2.outputs.cache-hit != 'true' - run: choco install msys2 --no-progress - - name: Install C++ compiler and libraries - if: steps.cache-msys2.outputs.cache-hit != 'true' - shell: python scripts\msys-bash.py {0} - run: ./scripts/list-build-dependencies.sh -m msys2 -c clang -b ${{ matrix.conf.bits }} | xargs pacman -S --noconfirm - - name: Shrink MSYS2 for cache - if: steps.cache-msys2.outputs.cache-hit != 'true' - shell: python scripts\msys-bash.py {0} - run: ./.github/scripts/shrink-msys2.sh - - name: Prepare compiler cache - id: prep-ccache - shell: bash - run: | - mkdir -p "${CCACHE_DIR}" - echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date -I)" - echo "::set-output name=yesterday::$(date --date=yesterday -I)" - - uses: actions/cache@v1 - id: cache-ccache - with: - path: ${{ steps.prep-ccache.outputs.dir }} - key: ccache-msys2-${{ matrix.conf.compiler }}-${{ matrix.conf.bits }}-${{ steps.prep-ccache.outputs.today }} - restore-keys: | - ccache-msys2-${{ matrix.conf.compiler }}-${{ matrix.conf.bits }}-${{ steps.prep-ccache.outputs.yesterday }} - - name: Log environment - shell: python scripts\msys-bash.py {0} - run: ./scripts/log-env.sh - - name: Build - shell: python scripts\msys-bash.py {0} - run: | - # The following two MSYSTEM variables are used by auto-tools to determine host - # architecture so we override them to match the current build type (32-bit or 64-bit) - export MSYSTEM_CARCH=${{ matrix.conf.arch }} - export MSYSTEM_CHOST=${{ matrix.conf.arch }}-pc-msys - ./scripts/build.sh --compiler ${{ matrix.conf.compiler }} --build-type Debug --bin-path /mingw${{ matrix.conf.bits }}/bin - - name: Summarize warnings - env: - MAX_WARNINGS: ${{ matrix.conf.max_warnings }} - run: python scripts\count-warnings.py build.log - |