Skip to content

Commit

Permalink
Try bash
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Oct 24, 2024
1 parent d80fdd7 commit c6f9fe5
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,24 @@ jobs:
# token: ${{ github.token }}
# manifest-dir: ${{ github.workspace }}/.github/manifest
# github-binarycache: true
# - name: Install LLVM
# shell: pwsh
# run: |
# Set-PSDebug -Trace 1
# New-Item -Name ".llvm" -Type Directory
# Invoke-WebRequest -Uri https://github.com/wasmerio/llvm-custom-builds/releases/download/15.x/llvm-windows-amd64.tar.xz -OutFile llvm.xz
# ls
# tar -xvf llvm.xz -C .llvm
# echo LLVM_SYS_150_PREFIX="$(pwd)/.llvm" >> $GITHUB_ENV
- name: Install LLVM
shell: pwsh
shell: bash
run: |
Set-PSDebug -Trace 1
New-Item -Name ".llvm" -Type Directory
Invoke-WebRequest -Uri https://github.com/wasmerio/llvm-custom-builds/releases/download/15.x/llvm-windows-amd64.tar.xz -OutFile llvm.xz
ls
tar -xvf llvm.xz -C .llvm
echo LLVM_SYS_150_PREFIX="$(pwd)/.llvm" >> $GITHUB_ENV
LLVM_DIR=$(pwd)/${{ env.LLVM_DIR }}
mkdir -p ${LLVM_DIR}
curl --proto '=https' --tlsv1.2 -sSf "https://github.com/wasmerio/llvm-custom-builds/releases/download/15.x/llvm-windows-amd64.tar.xz" -L -o - | tar xJv -C ${LLVM_DIR}
echo "${LLVM_DIR}/bin" >> $GITHUB_PATH
env:
LLVM_DIR: .llvm
- name: test root
env:
LLVM_SYS_150_PREFIX: "C:\Program Files\LLVM"
Expand Down

0 comments on commit c6f9fe5

Please sign in to comment.