name: Build on: push: branches: [main] pull_request: workflow_dispatch: permissions: contents: read concurrency: group: build-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: recompilation: name: Recompilation test uses: ./.github/workflows/recomp-test.yml translator: name: Translator (build + test) runs-on: windows-latest steps: - uses: actions/checkout@v7 with: persist-credentials: false - uses: actions/setup-dotnet@v6 with: dotnet-version: '8.0.x' - name: Cache NuGet packages uses: actions/cache@v5 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('translator/Translator.sln', '**/*.csproj', '**/*.props', '**/*.targets', '**/packages.lock.json', 'global.json', 'NuGet.config', 'nuget.config') }} restore-keys: | ${{ runner.os }}-nuget- - name: Restore run: dotnet restore translator/Translator.sln - name: Build run: dotnet build translator/Translator.sln -c Release --no-restore - name: Test run: dotnet test translator/Translator.sln -c Release --no-build --verbosity normal