mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-19 01:18:40 +03:00
fix: Use Scoop on windows release script
This commit is contained in:
parent
fc0bc3a515
commit
b957b5202f
28
.github/workflows/release_windows.yml
vendored
28
.github/workflows/release_windows.yml
vendored
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user