diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d6f67a927..06990fe97 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -151,11 +151,6 @@ jobs: with: install: p7zip mingw-w64-x86_64-lua - - name: Set up TDM-GCC - run: msys2 -c "bash go/src/github.com/${{ env.repo_owner }}/${{ env.repo_name }}/scripts/get-tdm-gcc.sh tdm https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm-1/tdm-gcc-10.3.0.exe" && echo "CC=${{ github.workspace }}/tdm/bin/gcc.exe" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - if: "contains( matrix.config.goarch, '386')" - working-directory: ${{ github.workspace }} - - name: Set up Go uses: actions/setup-go@v5 with: diff --git a/scripts/get-tdm-gcc.sh b/scripts/get-tdm-gcc.sh deleted file mode 100644 index 21481a9b2..000000000 --- a/scripts/get-tdm-gcc.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# This script is to set up tdm-gcc environment for windows ci. -# BE CAREFUL! THIS SCRIPT WILL DESTROY THE ROOT OF TDM-DCC AT FIRST. -# Usage: -# bash /path/to/the/script /path/to/tdm-gcc/sysroot - -BASEDIR=$(rm -rf $1 && mkdir $1 && cd $1 && pwd) -TDM_URL=$2 - -function DecompressTDM () { - echo "Downloading From ${TDM_URL}..." - wget ${TDM_URL} -O "${BASEDIR}/tdm.exe" > /dev/null - echo "Decompress the archive..." - 7z e -y "${BASEDIR}/tdm.exe" -o"${BASEDIR}" > /dev/null - for tarbar in "${BASEDIR}/"*.tar.xz - do - # We can't use tar -Jxvf here, it will cause pipeline hanging. - xz -d "${tarbar}" -c > "${tarbar%.xz}" - tar -xf "${tarbar%.xz}" -C ${BASEDIR} - done -} - - -function CreateFeaturesHeader() { - echo "Creating features.h..." - cat > "${BASEDIR}/include/features.h" <