Add optional timer prefix #340
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: build | |
on: [push, pull_request] | |
env: | |
LPRunUrl: https://www.linqpad.net/GetFile.aspx?preview+LINQPad8-Beta.zip | |
LPRun: LPRun8-x64.exe --% -fx=9.0 | |
CompileOnly: -compileonly | |
PSHeader: | | |
$ErrorActionPreference = 'Stop' | |
$Verbose = $VerbosePreference -ne 'SilentlyContinue' | |
PSClearClipboard: | | |
'' | Set-Clipboard | |
PSAssertClipboard: | | |
Get-Clipboard | |
if(-not $(Get-Clipboard -Raw).Trim()){ throw "Clipboard is empty" } | |
PSAssertClipboardEventStock: | | |
Get-Clipboard | |
if($(Get-Clipboard).Length -le (4 + 8)){ throw "Event stock parsing failed" } | |
PSAssertModules: | | |
if((Get-Content -Raw ./data/Operators.tsv).Split("`n", [StringSplitOptions]::RemoveEmptyEntries -bor [StringSplitOptions]::TrimEntries) -join "`n" -ne ($(Get-Clipboard) -join "`n")){ throw "Modules have been updated" } | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
# Set up | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: | | |
9.0.x | |
# Set up LPRun | |
- name: Set up LPRun | |
uses: Alex079/[email protected] | |
with: | |
archiveUrl: ${{env.LPRunUrl}} | |
# Check out | |
- name: Check out | |
uses: actions/[email protected] | |
# Execute LPRun scripts | |
- name: Execute EventStatus.linq | |
if: ${{success() || failure()}} | |
run: ${{env.LPRun}} EventStatus.linq | |
- name: Execute EventStockParser.linq | |
if: ${{success() || failure()}} | |
run: | | |
${{env.PSHeader}} | |
${{env.PSClearClipboard}} | |
${{env.LPRun}} EventStockParser.linq | |
${{env.PSAssertClipboardEventStock}} | |
- name: Compile Hourglass.linq | |
if: ${{success() || failure()}} | |
run: ${{env.LPRun}} ${{env.CompileOnly}} Hourglass.linq | |
- name: Execute OperationStrategies.linq | |
if: ${{success() || failure()}} | |
run: ${{env.LPRun}} OperationStrategies.linq | |
- name: Execute OperatorModules.linq | |
if: ${{success() || failure()}} | |
run: ${{env.LPRun}} OperatorModules.linq | |
- name: Execute OperatorModulesParser.linq | |
if: ${{success() || failure()}} | |
run: | | |
${{env.PSHeader}} | |
${{env.PSClearClipboard}} | |
${{env.LPRun}} OperatorModulesParser.linq | |
${{env.PSAssertClipboard}} | |
${{env.PSAssertModules}} | |
- name: Execute OriginitePrimePacks.linq | |
if: ${{success() || failure()}} | |
run: ${{env.LPRun}} OriginitePrimePacks.linq |