Skip to content

Commit

Permalink
ci: move install required tools step to ci_main script
Browse files Browse the repository at this point in the history
  • Loading branch information
liya2017 authored and liya2017 committed Nov 4, 2021
1 parent a3b454d commit be93b97
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions devtools/ci/ci_main.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash
set -euo pipefail
if [[ $RUNNER_LABEL == 'windows-2019' ]];then
iex (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "${{ github.workspace }}\devtools\windows" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
scoop install git
scoop bucket add extras
scoop install llvm yasm
echo "RUNNER_LABEL is " $RUNNER_LABEL
if [[ $RUNNER_LABEL == "windows-2019" ]];then
echo "test"
# iex (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
# echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# echo "${{ github.workspace }}\devtools\windows" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# scoop install git
# scoop bucket add extras
# scoop install llvm yasm
fi
is_self_runner=`echo $RUNNER_LABEL | awk -F '-' '{print $1}'`
clean_threshold=40000
Expand Down

0 comments on commit be93b97

Please sign in to comment.