Export jzon:parser
#232
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: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} build | |
strategy: | |
matrix: | |
os: [ windows-latest ] | |
steps: | |
- run: git config --global core.autocrlf false | |
- uses: actions/checkout@v2 | |
- name: Cache SBCL | |
id: cache-sbcl | |
uses: actions/cache@v3 | |
with: | |
path: ~\sbcl\ | |
key: ${{ runner.os }}-sbcl | |
- name: Cache Quicklisp | |
id: cache-ql | |
uses: actions/cache@v3 | |
with: | |
path: ~\quicklisp\ | |
key: ${{ runner.os }}-sbcl | |
- name: Install SBCL | |
if: steps.cache-sbcl.outputs.cache-hit != 'true' | |
run: | | |
$uri = "http://downloads.sourceforge.net/sbcl/sbcl-2.0.0-x86-64-windows-binary.msi" | |
Invoke-WebRequest -Uri $uri -OutFile "$env:TEMP\sbcl.msi" -UserAgent "_" | |
Start-Process "msiexec" -ArgumentList "/a", "$env:TEMP\sbcl.msi", "/qbn", "TARGETDIR=$env:TEMP\sbcl\" -Wait -NoNewWindow | |
$sbclSubDir = "$env:TEMP\sbcl\PFiles\Steel Bank Common Lisp\2.0.0\" | |
Move-Item -Path $sbclSubDir -Destination "$HOME\sbcl\" | |
- name: Configure SBCL | |
run: | | |
echo "SBCL_HOME=$HOME\sbcl\" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
echo "$HOME\sbcl\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Install Quicklisp | |
if: steps.cache-ql.outputs.cache-hit != 'true' | |
run: | | |
$uri = "https://beta.quicklisp.org/quicklisp.lisp" | |
Invoke-WebRequest -Uri $uri -OutFile "$env:TEMP\quicklisp.lisp" -UserAgent "_" | |
sbcl --noinform --end-runtime-options --no-sysinit --no-userinit --disable-debugger --load "$env:TEMP\quicklisp.lisp" --eval "(quicklisp-quickstart:install)" --quit | |
- name: Unit Tests | |
shell: cmd | |
run: call test | |
- name: JSONTestSuite Tests | |
shell: cmd | |
run: | | |
call JSONTestSuite\make.bat | |
call JSONTestSuite\test.bat |