From 106c7537820ad14d02e36f24b50e1d6a4deea858 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 22 Dec 2020 01:06:07 -0500 Subject: [PATCH] actions: support installer generation on CI --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95e8f4e51..a676d1ef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,14 @@ jobs: - name: Install dependencies (Windows) if: matrix.config.os == 'windows-latest' - run: choco install ninja + run: | + choco install ninja + $url = "https://github.com/leafo/moonscript/releases/download/win32-v0.5.0/moonscript-187bac54ee5a7450013e9c38e005a0e671b76f45.zip" + mkdir moonscript + Invoke-WebRequest -Uri $url -OutFile ".\moonscript\moonscript.zip" + cd moonscript + 7z e moonscript.zip + Get-Location | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Install dependencies (Linux) if: matrix.config.os == 'ubuntu-latest' @@ -71,6 +78,10 @@ jobs: - name: Build run: meson compile -C build + - name: Generate Windows installer + if: matrix.config.os == 'windows-latest' + run: ninja win-installer + - name: Upload artifacts uses: actions/upload-artifact@v2 if: matrix.config.os == 'windows-latest'