docs(readme): add Chocolatey install command #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libgmp-dev | |
- name: Run CI script | |
run: ./ci.sh | |
windows: | |
runs-on: windows-2019 | |
steps: | |
- name: 'Disable `autocrlf` in Git' | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v3 | |
- name: Install MoSML | |
run: | | |
New-Item -ItemType Directory -Path C:\mosml -Force | |
Invoke-WebRequest -Uri https://dbohdan.com/dist/mosml-2.10.1-win32.7z -OutFile C:\mosml\mosml.7z | |
7z x -oC:\mosml C:\mosml\mosml.7z | |
- name: Build initool | |
run: .\build.cmd /batch /package | |
- name: Check that initool runs | |
run: .\initool.exe version | |
- name: Add artifact filename to env | |
run: | | |
$artifactFilename = (Get-ChildItem -Filter *.zip | Select-Object -First 1).Name | |
Write-Output "artifactFilename=$artifactFilename" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- name: Upload Win32 binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: '${{ env.artifactFilename }}' | |
path: '${{ env.artifactFilename }}' |