diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 8edab4d1..1e5a1c7a 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -12,8 +12,10 @@ on: jobs: build: - runs-on: windows-2019 - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 - name: Setup .NET Core @@ -26,10 +28,12 @@ jobs: run: dotnet test -c Debug #uses msbuild.rsp for coverlet configuration - name: coveralls uses: coverallsapp/github-action@v1.1.1 + if: matrix.os == 'windows-latest' with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./ParserTests/lcov.info - name: push + if: matrix.os == 'windows-latest' id: publish_nuget uses: brandedoutcast/publish-nuget@v2.5.2 with: @@ -38,7 +42,7 @@ jobs: NUGET_KEY: ${{ secrets.NUGET_KEY }} VERSION_FILE_PATH: sly/sly.csproj - name: Create Release - if: ${{ success() && steps.publish_nuget.outputs.VERSION != '' && steps.publish_nuget.outputs.VERSION != null }} + if: ${{ success() && matrix.os == 'windows-latest' && steps.publish_nuget.outputs.VERSION != '' && steps.publish_nuget.outputs.VERSION != null }} id: create_release uses: actions/create-release@latest env: @@ -49,7 +53,7 @@ jobs: draft: false prerelease: false - name: Upload Release Asset - if: ${{ success() && steps.create_release.outputs.upload_url != '' && steps.create_release.outputs.upload_url != null }} + if: ${{ success() && matrix.os == 'windows-latest' && steps.create_release.outputs.upload_url != '' && steps.create_release.outputs.upload_url != null }} id: upload-release-asset uses: actions/upload-release-asset@v1 env: diff --git a/samples/ParserExample/Issue183Lexer.cs b/samples/ParserExample/Issue183Lexer.cs deleted file mode 100644 index 797f735d..00000000 --- a/samples/ParserExample/Issue183Lexer.cs +++ /dev/null @@ -1,50 +0,0 @@ -using sly.lexer; - -namespace ParserExample -{ - public enum Issue165Lexer - { - [Lexeme(GenericToken.SugarToken,"?")] - QUESTIONMARK = 1, - - [Lexeme(GenericToken.SugarToken,"+")] - PLUS = 2, - - [Lexeme(GenericToken.SugarToken,"-")] - MINUS = 3, - - [Lexeme(GenericToken.SugarToken,"*")] - TIMES = 4, - - [Lexeme(GenericToken.SugarToken,"/")] - DIVIDE = 5, - - [Lexeme(GenericToken.SugarToken,"(")] - LPAR = 6, - - [Lexeme(GenericToken.SugarToken,")")] - RPAR = 6, - - [Lexeme(GenericToken.SugarToken,"[")] - LBR = 7, - - [Lexeme(GenericToken.SugarToken,"]")] - RBR = 8, - - [Lexeme(GenericToken.SugarToken,":")] - COLON = 7, - - [Lexeme(GenericToken.SugarToken,"=")] - EQ = 8, - - - [Lexeme(GenericToken.Identifier)] ID = 20, - - [Lexeme(GenericToken.String)] STRING = 21, - - [Lexeme(GenericToken.Int)] INT = 22, - - - - } -} \ No newline at end of file diff --git a/samples/ParserExample/ParserExample.csproj b/samples/ParserExample/ParserExample.csproj index 9f8dc89d..ebcbd018 100644 --- a/samples/ParserExample/ParserExample.csproj +++ b/samples/ParserExample/ParserExample.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.0 + netcoreapp3.1 b3b00