CI: build & test #5
Workflow file for this run
This file contains hidden or 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 and test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.x.x | |
| - name: Clear NuGet cache # to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore. | |
| run: dotnet nuget locals all --clear | |
| - name: Restore dependencies | |
| run: dotnet restore --force-evaluate | |
| - name: make script executable | |
| run: chmod u+x build.sh | |
| - name: Build and test | |
| run: ./build.sh runtests | |
| build-and-test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.x.x | |
| - name: Clear NuGet cache # to prevent error NU1403: Package content hash validation failed for FSharp.Core.8.0.403. The package is different than the last restore. | |
| run: dotnet nuget locals all --clear | |
| - name: Restore dependencies | |
| run: dotnet restore --force-evaluate | |
| - name: Build and test | |
| working-directory: ./ | |
| run: ./build.cmd runtests |