fix: Use Scoop on windows release script

This commit is contained in:
Erik Svedäng 2020-11-30 21:48:58 +01:00
parent fc0bc3a515
commit b957b5202f

View File

@ -14,9 +14,35 @@ jobs:
id: get_tag_name
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Checkout code
- name: Check out
uses: actions/checkout@v2
- name: Install Scoop
run: |
iwr -useb get.scoop.sh | iex
echo "~\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\ProgramData\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install Stack
run: scoop install stack
- uses: actions/cache@v1
name: Cache stack dependencies
with:
path: C:\\Users\\runneradmin\\AppData\\Local\\Programs\\stack
key: ${{ runner.os }}-stack-deps-${{ github.sha }}
restore-keys: ${{ runner.os }}-stack-deps
- uses: actions/cache@v1
name: Cache stack build
with:
path: C:\\Users\\runneradmin\\AppData\\Roaming\\stack\
key: ${{ runner.os }}-stack-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-stack-build
- name: Install Clang
run: scoop install llvm --global
- name: Build and zip
run: "./scripts/release.sh ${{ steps.get_tag_name.outputs.VERSION }} --noprompt"