diff --git a/.github/workflows/build-nightly.yaml b/.github/workflows/build-nightly.yaml index 0a5731a2953..67fa890e801 100644 --- a/.github/workflows/build-nightly.yaml +++ b/.github/workflows/build-nightly.yaml @@ -23,10 +23,13 @@ jobs: runs-on: ${{ matrix.os }} container: ghcr.io/scp-fs2open/linux_build:sha-71099c9 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Configure CMake env: CONFIGURATION: ${{ matrix.configuration }} @@ -51,7 +54,7 @@ jobs: CONFIGURATION: ${{ matrix.configuration }} run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: linux-${{ matrix.configuration }}-${{ matrix.arch }} path: ${{ github.workspace }}/build/install/*.AppImage @@ -59,23 +62,26 @@ jobs: name: Build Linux distribution zip needs: build_linux runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-Release-${{ matrix.arch }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-FastDebug-${{ matrix.arch }} path: builds @@ -106,10 +112,13 @@ jobs: name: Windows runs-on: windows-2022 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # - name: Cache Qt # id: cache-qt-win # uses: actions/cache@v1 @@ -179,7 +188,7 @@ jobs: shell: bash run: ./bin/$CONFIGURATION/unittests --gtest_shuffle - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: windows-${{ matrix.configuration }}-${{ matrix.arch }}-${{ matrix.simd }} path: ${{ github.workspace }}/build/install/* @@ -187,24 +196,27 @@ jobs: name: Build Windows distribution zip needs: build_windows runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [Win32, x64] simd: [SSE2] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-Release-${{ matrix.arch }}-${{ matrix.simd }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-FastDebug-${{ matrix.arch }}-${{ matrix.simd }} path: builds @@ -249,11 +261,14 @@ jobs: # setup-python: 'false' # aqtversion: ==1.1.3 # py7zrversion: '==0.19.*' - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: 0 + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Prepare Vulkan SDK uses: humbletim/setup-vulkan-sdk@v1.2.1 with: @@ -302,7 +317,7 @@ jobs: # Ref: https://github.com/actions/runner-images/issues/2619 run: gtar -cvzf macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz *.app - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: mac-${{ matrix.configuration }}-${{ matrix.arch }} path: ${{ github.workspace }}/build/bin/macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz @@ -310,24 +325,27 @@ jobs: name: Build Mac distribution zip needs: build_mac runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-Release-${{ matrix.arch }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-FastDebug-${{ matrix.arch }} path: builds diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index a160fec7033..8f803214011 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -52,12 +52,15 @@ jobs: runs-on: ${{ matrix.os }} container: ghcr.io/scp-fs2open/linux_build:sha-71099c9 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 # checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it. name: Checkout with: submodules: true # `true` to checkout submodules, `recursive` to recursively checkout submodules ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Configure CMake env: CONFIGURATION: ${{ matrix.configuration }} @@ -82,7 +85,7 @@ jobs: CONFIGURATION: ${{ matrix.configuration }} run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 # Upload the url file for use with other runners # upload-artifact.inputs: # if-no-files-found=warn What to do if path fails to find any files. @@ -99,26 +102,29 @@ jobs: name: Build Linux distribution zip needs: build_linux runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' # value 0 to fetch all history and tags for all branches ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds # Grab the release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-Release-${{ matrix.arch }} path: builds - name: Download FastDebug builds # Grab the debug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-FastDebug-${{ matrix.arch }} path: builds @@ -135,7 +141,7 @@ jobs: run: $GITHUB_WORKSPACE/ci/linux/create_dist_pack.sh Linux - name: Upload result package # Stash the result to artifact filespace - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.generate_package.outputs.package_name }} path: ${{ steps.generate_package.outputs.package_path }} @@ -157,12 +163,15 @@ jobs: name: Windows runs-on: windows-2022 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 # Checkout repo name: Checkout with: submodules: true ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # - name: Cache Qt # # Cache Qt # id: cache-qt-win @@ -235,7 +244,7 @@ jobs: shell: bash run: ./bin/$CONFIGURATION/unittests --gtest_shuffle - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: windows-${{ matrix.configuration }}-${{ matrix.arch }}-${{ matrix.simd }} path: ${{ github.workspace }}/build/install/* @@ -244,7 +253,7 @@ jobs: name: Build Windows distribution zip needs: build_windows runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: fail-fast: false # Run the other jobs in the matrix instead of failing them matrix: @@ -252,20 +261,23 @@ jobs: simd: [SSE2, AVX] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-Release-${{ matrix.arch }}-${{ matrix.simd }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-FastDebug-${{ matrix.arch }}-${{ matrix.simd }} path: builds @@ -280,13 +292,13 @@ jobs: run: $GITHUB_WORKSPACE/ci/linux/create_dist_pack.sh Windows - name: Upload result package - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.generate_package.outputs.package_name }} path: ${{ steps.generate_package.outputs.package_path }} - name: Upload debug package - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.generate_package.outputs.debug_name }} path: ${{ steps.generate_package.outputs.debug_path }} @@ -324,12 +336,15 @@ jobs: # cached: ${{ steps.cache-qt-mac.outputs.cache-hit }} # setup-python: 'false' # aqtversion: ==1.1.3 - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: 0 ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Prepare Vulkan SDK uses: humbletim/setup-vulkan-sdk@v1.2.1 with: @@ -372,7 +387,7 @@ jobs: # Ref: https://github.com/actions/runner-images/issues/2619 run: gtar -cvzf macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz *.app - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: mac-${{ matrix.configuration }}-${{ matrix.arch }} path: ${{ github.workspace }}/build/bin/macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz @@ -380,24 +395,27 @@ jobs: name: Build Mac distribution zip needs: build_mac runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-Release-${{ matrix.arch }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-FastDebug-${{ matrix.arch }} path: builds @@ -413,7 +431,7 @@ jobs: ARCH: ${{ matrix.arch }} run: $GITHUB_WORKSPACE/ci/linux/create_dist_pack.sh Mac - name: Upload result package - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.generate_package.outputs.package_name }} path: ${{ steps.generate_package.outputs.package_path }} diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 99f7fc1144c..0e60cc89f6c 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -17,10 +17,13 @@ jobs: runs-on: ubuntu-latest container: ghcr.io/scp-fs2open/linux_build:sha-71099c9 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Set up test version shell: bash run: | @@ -51,7 +54,7 @@ jobs: CONFIGURATION: ${{ matrix.configuration }} run: $GITHUB_WORKSPACE/ci/linux/generate_appimage.sh $GITHUB_WORKSPACE/build/install - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: linux-${{ matrix.configuration }} path: ${{ github.workspace }}/build/install/*.AppImage @@ -59,21 +62,24 @@ jobs: name: Build Linux distribution zip needs: build_linux runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-Release path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: linux-FastDebug path: builds @@ -98,10 +104,13 @@ jobs: name: Windows runs-on: windows-2022 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Set up test version shell: bash run: | @@ -177,7 +186,7 @@ jobs: shell: bash run: ./bin/$CONFIGURATION/unittests --gtest_shuffle - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: windows-${{ matrix.configuration }}-${{ matrix.arch }}-${{ matrix.simd }} path: ${{ github.workspace }}/build/install/* @@ -185,25 +194,28 @@ jobs: name: Build Windows distribution zip needs: build_windows runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [Win32, x64] simd: [SSE2] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-Release-${{ matrix.arch }}-${{ matrix.simd }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: windows-FastDebug-${{ matrix.arch }}-${{ matrix.simd }} path: builds @@ -248,11 +260,14 @@ jobs: # setup-python: 'false' # aqtversion: ==1.1.3 # py7zrversion: '==0.19.*' - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: 0 + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Prepare Vulkan SDK uses: humbletim/setup-vulkan-sdk@v1.2.1 with: @@ -300,7 +315,7 @@ jobs: # Ref: https://github.com/actions/runner-images/issues/2619 run: gtar -cvzf macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz *.app - name: Upload build result - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: mac-${{ matrix.configuration }}-${{ matrix.arch }} path: ${{ github.workspace }}/build/bin/macos-build-${{ matrix.configuration }}-${{ matrix.arch }}.tgz @@ -308,24 +323,27 @@ jobs: name: Build Mac distribution zip needs: build_mac runs-on: ubuntu-latest - container: ghcr.io/scp-fs2open/sftp_upload:sha-748b19d + container: ghcr.io/scp-fs2open/sftp_upload:sha-844131c strategy: matrix: arch: [x86_64, arm64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: '0' ref: '${{ github.ref }}' + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Download Release builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-Release-${{ matrix.arch }} path: builds - name: Download FastDebug builds - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: mac-FastDebug-${{ matrix.arch }} path: builds diff --git a/.github/workflows/cache-master.yaml b/.github/workflows/cache-master.yaml index 1a0e53b0afe..04230bed412 100644 --- a/.github/workflows/cache-master.yaml +++ b/.github/workflows/cache-master.yaml @@ -29,10 +29,13 @@ jobs: steps: - name: Install Qt dependencies run: apt-get -yq update && apt-get -yq install libfontconfig1 - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: ccache uses: hendrikmuhs/ccache-action@v1 with: diff --git a/.github/workflows/post-build-release.yaml b/.github/workflows/post-build-release.yaml index 8b57e527e74..abe064721fc 100644 --- a/.github/workflows/post-build-release.yaml +++ b/.github/workflows/post-build-release.yaml @@ -45,11 +45,13 @@ jobs: run: echo "github.event_name= ${{ github.event_name }}" - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: fetch-depth: '0' ref: ${{ env.RELEASE_TAG }} - + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Install Python dependencies run: pip install -r ci/post/requirements.txt diff --git a/.github/workflows/test-pull_request.yaml b/.github/workflows/test-pull_request.yaml index 8af2c819638..14383e589ff 100644 --- a/.github/workflows/test-pull_request.yaml +++ b/.github/workflows/test-pull_request.yaml @@ -32,11 +32,14 @@ jobs: steps: - name: Install Qt dependencies run: apt-get -yq update && apt-get -yq install libfontconfig1 - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: 0 + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: ccache uses: hendrikmuhs/ccache-action@v1 with: @@ -86,10 +89,13 @@ jobs: steps: - name: Prepare Environment run: choco install ninja - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # - name: Cache Qt # id: cache-qt-win # uses: actions/cache@v1 @@ -199,11 +205,14 @@ jobs: # setup-python: 'false' # aqtversion: ==1.1.3 # py7zrversion: '==0.19.*' - - uses: actions/checkout@v1 + - uses: actions/checkout@v7 name: Checkout with: submodules: true fetch-depth: 0 + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: ccache uses: hendrikmuhs/ccache-action@v1 with: diff --git a/.github/workflows/weekly-coverity-scan.yaml b/.github/workflows/weekly-coverity-scan.yaml index 7e662dd0a80..953b6e31544 100644 --- a/.github/workflows/weekly-coverity-scan.yaml +++ b/.github/workflows/weekly-coverity-scan.yaml @@ -29,9 +29,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v7 with: submodules: recursive # `true` to checkout submodules, `recursive` to recursively checkout submodules + - name: Set workspace as safe + # This appears to be broken in current actions, so do it manually + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # pipe results of wget to a log file because it's very verbose and rarely fails - name: Install Coverity