Major Repo Updates #10
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: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use .NET 8 SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- name: Build | |
if: runner.os != 'Windows' | |
run: | | |
chmod +x ./build.sh | |
./build.sh | |
env: | |
CI: true | |
- name: Build | |
if: runner.os == 'Windows' | |
run: ./build.cmd | |
env: | |
CI: true | |
# Separate job to run F# analyzers | |
analyzers: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Build | |
if: runner.os == 'Windows' | |
run: ./build.cmd analyzers | |
env: | |
CI: true | |
continue-on-error: true | |
- name: Upload SARIF files | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: src/reports |