Add landmines #1206
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
| on: [ push, pull_request ] | |
| name: CI | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| code-style: | |
| name: Code Style | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: install dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: install tools | |
| run: dotnet tool restore | |
| - name: inspect/dotnet | |
| run: dotnet build fluXis.Desktop -c Debug -warnaserror -p:EnforceCodeStyleInBuild=true | |
| - name: inspect/jetbrains | |
| run: dotnet jb inspectcode $(pwd)/fluXis.Desktop.slnf --no-build --output="inspectcodereport.xml" --verbosity=WARN | |
| - name: output inspect | |
| run: dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml" --treatwarningsaserrors | |
| build-linux: | |
| name: Build (Linux) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: install dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: build | |
| run: dotnet publish fluXis.Desktop | |
| build-windows: | |
| name: Build (Windows) | |
| runs-on: windows-2022 | |
| timeout-minutes: 20 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: install dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: build | |
| run: dotnet build fluXis.Desktop |