From 00f06aa94662011021dc6ef0c2e341163d782b9a Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sat, 11 Jul 2020 03:52:59 +1000 Subject: [PATCH] Install TDM-GCC --- .github/workflows/cli.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 52fc62e..6198153 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -42,20 +42,16 @@ jobs: toolchain: stable profile: minimal default: true - - name: Set up Go (Windows) + - uses: actions/setup-go@v2 + with: + go-version: '^1.14.0' + - name: Set up GCC (Windows) if: runner.os == 'Windows' - run: choco install golang - - name: Set up Go (macOS) - if: runner.os == 'macOS' run: | - brew install go - sudo xcode-select -s /Applications/Xcode_11.1.app/Contents/Developer - - name: Set up Go (Linux) - if: runner.os == 'Linux' - run: | - sudo add-apt-repository -y ppa:longsleep/golang-backports - sudo apt update - sudo apt install golang-go + Invoke-WebRequest 'https://wilsonl.in/TDM-GCC-64.7z' -OutFile C:\gcc.7z + 7z x C:\gcc.7z -oC:\ + $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path + Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value "C:\TDM-GCC-64\bin;$oldpath" - name: Build CLI working-directory: ./cli run: cargo build --release -vvv