From 3ed7e13b3dfc36f0c4961beb1323a321bb193001 Mon Sep 17 00:00:00 2001 From: dev-sptg Date: Tue, 9 Feb 2021 18:55:36 +0200 Subject: [PATCH] Fix build for windows 64 bit --- .github/workflows/release.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22bbaea1a8..f65b75fc4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,6 @@ jobs: windows: name: Windows runs-on: windows-latest - continue-on-error: true steps: - name: Checkout uses: actions/checkout@v1 @@ -111,8 +110,11 @@ jobs: - name: Install LLVM and Clang uses: KyleMayes/install-llvm-action@v1 with: - version: "10.0" - directory: ~ / .clang + version: "11" + directory: ${{ runner.temp }}/llvm + + - name: Set LIBCLANG_PATH + run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV - name: Build Leo run: | @@ -125,18 +127,13 @@ jobs: - name: Zip run: | - mkdir tempdir - mv target/release/leo tempdir - cd tempdir - Compress-Archive leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu leo - cd .. - mv leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu . + Compress-Archive target/release/leo.exe leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-msvc.zip - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | - leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-gnu.zip + leo-${{ steps.get_version.outputs.version }}-x86_64-pc-windows-msvc.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}