actions: support installer generation on CI
This commit is contained in:
parent
a3ec466ff6
commit
106c753782
1 changed files with 12 additions and 1 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue